diff --git a/package-lock.json b/package-lock.json
index 7e29848b..da7481ad 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
- "@fosscord/server-util": "^1.3.22",
+ "@fosscord/server-util": "^1.3.29",
"ajv": "^8.5.0",
"dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1",
@@ -31,9 +31,9 @@
}
},
"node_modules/@fosscord/server-util": {
- "version": "1.3.22",
- "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.22.tgz",
- "integrity": "sha512-YxkuMwsJmMpCN4zGCq0LHvUuV9zlR8yTriquPqWfp5Sbj1DdFz7Qqo6wz6cRYb3WRIINouHhV60cbljmUqLIJQ==",
+ "version": "1.3.29",
+ "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.29.tgz",
+ "integrity": "sha512-lxb8LGezMG1yo9kR6CVlWN8+pjsduCG1b8wkYsAjv6sqjFz7mgKUo/rvxUenJTCspDHxDF/3RuYBLdQEtVEVXg==",
"dependencies": {
"@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1",
@@ -2199,9 +2199,9 @@
},
"dependencies": {
"@fosscord/server-util": {
- "version": "1.3.22",
- "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.22.tgz",
- "integrity": "sha512-YxkuMwsJmMpCN4zGCq0LHvUuV9zlR8yTriquPqWfp5Sbj1DdFz7Qqo6wz6cRYb3WRIINouHhV60cbljmUqLIJQ==",
+ "version": "1.3.29",
+ "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.29.tgz",
+ "integrity": "sha512-lxb8LGezMG1yo9kR6CVlWN8+pjsduCG1b8wkYsAjv6sqjFz7mgKUo/rvxUenJTCspDHxDF/3RuYBLdQEtVEVXg==",
"requires": {
"@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1",
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<void> {
+ async start(): Promise<void> {
// @ts-ignore
await (db as Promise<Connection>);
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();
|