1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🚚 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 9 additions and 9 deletions

14
package-lock.json generated
View File

@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@fosscord/server-util": "^1.3.22", "@fosscord/server-util": "^1.3.29",
"ajv": "^8.5.0", "ajv": "^8.5.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
@ -31,9 +31,9 @@
} }
}, },
"node_modules/@fosscord/server-util": { "node_modules/@fosscord/server-util": {
"version": "1.3.22", "version": "1.3.29",
"resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.22.tgz", "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.29.tgz",
"integrity": "sha512-YxkuMwsJmMpCN4zGCq0LHvUuV9zlR8yTriquPqWfp5Sbj1DdFz7Qqo6wz6cRYb3WRIINouHhV60cbljmUqLIJQ==", "integrity": "sha512-lxb8LGezMG1yo9kR6CVlWN8+pjsduCG1b8wkYsAjv6sqjFz7mgKUo/rvxUenJTCspDHxDF/3RuYBLdQEtVEVXg==",
"dependencies": { "dependencies": {
"@types/jsonwebtoken": "^8.5.0", "@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-autopopulate": "^0.10.1",
@ -2199,9 +2199,9 @@
}, },
"dependencies": { "dependencies": {
"@fosscord/server-util": { "@fosscord/server-util": {
"version": "1.3.22", "version": "1.3.29",
"resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.22.tgz", "resolved": "https://registry.npmjs.org/@fosscord/server-util/-/server-util-1.3.29.tgz",
"integrity": "sha512-YxkuMwsJmMpCN4zGCq0LHvUuV9zlR8yTriquPqWfp5Sbj1DdFz7Qqo6wz6cRYb3WRIINouHhV60cbljmUqLIJQ==", "integrity": "sha512-lxb8LGezMG1yo9kR6CVlWN8+pjsduCG1b8wkYsAjv6sqjFz7mgKUo/rvxUenJTCspDHxDF/3RuYBLdQEtVEVXg==",
"requires": { "requires": {
"@types/jsonwebtoken": "^8.5.0", "@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-autopopulate": "^0.10.1",

View File

@ -28,7 +28,7 @@ export class Server {
await Promise.all([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> { async start(): Promise<void> {
// @ts-ignore // @ts-ignore
await (db as Promise<Connection>); await (db as Promise<Connection>);
await this.setupSchema(); await this.setupSchema();

View File

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