summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
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> {