diff options
author | Raphael <mail@raphaelkabo.com> | 2023-10-06 16:54:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 16:54:03 +0100 |
commit | a14afed944e5f0b87af96cc5c6a262d246b88d1d (patch) | |
tree | 26104aa7f2717ea7e8f69734a2181d456f264481 /src/start.ts | |
parent | f390b1d45b3f44a860fef4df2b31064f441b5065 (diff) | |
parent | 722d54e5ae8957436818b14e7aea613b19b12d28 (diff) |
Merge pull request #111 from lowercasename/rk/typescript
Typescript migration
Diffstat (limited to 'src/start.ts')
-rwxr-xr-x | src/start.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/start.ts b/src/start.ts index fcdfaea..a6399ac 100755 --- a/src/start.ts +++ b/src/start.ts @@ -5,21 +5,21 @@ import app from "./app.js"; const config = getConfig(); mongoose.connect(config.database.mongodb_url, { - useNewUrlParser: true, - useUnifiedTopology: true, + useNewUrlParser: true, + useUnifiedTopology: true, }); mongoose.set("useCreateIndex", true); mongoose.Promise = global.Promise; mongoose.connection - .on("connected", () => { - console.log("Mongoose connection open!"); - }) - .on("error", (err: any) => { - console.log(`Connection error: ${err.message}`); - }); + .on("connected", () => { + console.log("Mongoose connection open!"); + }) + .on("error", (err: any) => { + console.log(`Connection error: ${err.message}`); + }); const server = app.listen(config.general.port, () => { - console.log( - `Welcome to gathio! The app is now running on http://localhost:${config.general.port}` - ); + console.log( + `Welcome to gathio! The app is now running on http://localhost:${config.general.port}`, + ); }); |