🚚 rename listen() -> start() for a consistent naming schema

This commit is contained in:
Flam3rboy 2021-07-15 19:23:13 +02:00
parent bc4f944218
commit 6835a24d2e
3 changed files with 2 additions and 2 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -28,7 +28,7 @@ export class Server {
await Promise.all([db.collection("events").createIndex({ created_at: 1 }, { expireAfterSeconds: 60 })]);
}
async listen(): Promise<void> {
async start(): Promise<void> {
// @ts-ignore
await (db as Promise<Connection>);
await this.setupSchema();

View File

@ -11,4 +11,4 @@ if (isNaN(port)) port = 3002;
const server = new Server({
port,
});
server.listen();
server.start();