From 2c5959874eb67be15e99bea7f58a170383d68d88 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 22 May 2021 17:40:59 +0200 Subject: :bug: fix member sidebar --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.ts') 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 { -- cgit 1.5.1