summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 17:40:59 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-22 17:40:59 +0200
commit2c5959874eb67be15e99bea7f58a170383d68d88 (patch)
treee30d5e27a4135e097605799853186e6cb6885615 /src/Server.ts
parent:sparkles: Member List (diff)
downloadserver-2c5959874eb67be15e99bea7f58a170383d68d88.tar.xz
:bug: fix member sidebar
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 193bdad1..46ff56a3 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -30,7 +30,7 @@ export class Server { async setupSchema() { // TODO: adjust expireAfterSeconds -> lower - await db.collection("events").createIndex({ created_at: 1 }, { expireAfterSeconds: 60 }); + await Promise.all([db.collection("events").createIndex({ created_at: 1 }, { expireAfterSeconds: 60 })]); } async listen(): Promise<void> {