...
 
Commits (2)
......@@ -15,8 +15,7 @@ const proc = async function () {
for (let anno of annos) {
if (anno.body.source && anno.body.source.id && anno.body.source.id.indexOf(process.env.VIDEO_HOST_OLD) === 0) {
console.log('Modifying', anno.body.source.id)
const url = URL(anno.body.source.id)
anno.body.source.id = `${process.env.VIDEO_HOST_NEW}${url.pathname}`
anno.body.source.id = anno.body.source.id.replace(process.env.VIDEO_HOST_OLD, process.env.VIDEO_HOST_NEW)
console.log('New', anno.body.source.id)
await annoClient.update(anno.uuid, anno, {})
}
......
......@@ -4,8 +4,8 @@
"description": "API server for Motion Bank Systems",
"main": "src/index.js",
"scripts": {
"docker-build": "docker build -t motionbank/api:latest .",
"docker-push": "docker push motionbank/api:latest",
"docker-build": "docker build -t motionbank/api:release_1_2 .",
"docker-push": "docker push motionbank/api:release_1_2",
"docker-release": "npm run docker-build && npm run docker-push",
"lint": "eslint src/. --config .eslintrc.js",
"metapak": "metapak",
......