aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/remapUrl.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/remapUrl.ts b/src/server/remapUrl.ts
index 90044738f..6f4d6642f 100644
--- a/src/server/remapUrl.ts
+++ b/src/server/remapUrl.ts
@@ -33,7 +33,7 @@ async function update() {
if (url.href.includes("azure")) {
dynfield = true;
- update.$set = { ["fields." + key]: { url: `${url.protocol}//localhost:1050${url.pathname}`, __type: "image" } };
+ update.$set = { ["fields." + key + ".url"]: `${url.protocol}//localhost:1050${url.pathname}` };
}
}
}
@@ -47,7 +47,7 @@ async function update() {
return new Promise(res => Database.Instance.update(doc[0], doc[1], () => {
console.log("wrote " + JSON.stringify(doc[1]));
res();
- }));
+ }, false, "newDocuments"));
}));
console.log("Done");
// await Promise.all(updates.map(update => {