aboutsummaryrefslogtreecommitdiff
path: root/src/server/remapUrl.ts
diff options
context:
space:
mode:
authorljungster <parkerljung@gmail.com>2022-03-17 16:49:13 -0400
committerljungster <parkerljung@gmail.com>2022-03-17 16:49:13 -0400
commit87ecbf85db2e1d51c0bab92154500548942fac22 (patch)
tree6383d335e3d6a389ae0fb83be535aaa5afb0fbfd /src/server/remapUrl.ts
parent3d8ed6f4fd23f65b43cff9eeb7dd91589e496697 (diff)
parent73ba1a0395167ab5949f71d0c82fa7188d37ab5c (diff)
Merge remote-tracking branch 'origin/speedups2' into parker
Diffstat (limited to 'src/server/remapUrl.ts')
-rw-r--r--src/server/remapUrl.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/remapUrl.ts b/src/server/remapUrl.ts
index e9f9da25a..b8e17ec66 100644
--- a/src/server/remapUrl.ts
+++ b/src/server/remapUrl.ts
@@ -47,7 +47,7 @@ async function update() {
await cursor.forEach(updateDoc);
await Promise.all(updates.map(doc => {
console.log(doc[0], doc[1]);
- return new Promise(res => Database.Instance.update(doc[0], doc[1], () => {
+ return new Promise<void>(res => Database.Instance.update(doc[0], doc[1], () => {
console.log("wrote " + JSON.stringify(doc[1]));
res();
}, false));