diff --git a/package-lock.json b/package-lock.json index 7e29848b..da7481ad 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/src/Server.ts b/src/Server.ts index f59ac7f1..a88214ef 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -28,7 +28,7 @@ export class Server { await Promise.all([db.collection("events").createIndex({ created_at: 1 }, { expireAfterSeconds: 60 })]); } - async listen(): Promise { + async start(): Promise { // @ts-ignore await (db as Promise); await this.setupSchema(); diff --git a/src/start.ts b/src/start.ts index 22da628f..09a54751 100644 --- a/src/start.ts +++ b/src/start.ts @@ -11,4 +11,4 @@ if (isNaN(port)) port = 3002; const server = new Server({ port, }); -server.listen(); +server.start();