🚚 rename listen() -> start() for a consistent naming schema
This commit is contained in:
parent
bc4f944218
commit
6835a24d2e
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -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();
|
||||
|
||||
@ -11,4 +11,4 @@ if (isNaN(port)) port = 3002;
|
||||
const server = new Server({
|
||||
port,
|
||||
});
|
||||
server.listen();
|
||||
server.start();
|
||||
|
||||
Reference in New Issue
Block a user