summaryrefslogtreecommitdiff
path: root/src/start.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-06 16:25:29 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-06 16:25:29 +0100
commit2996a4d05d0ea2f8446e2a2a0383979ceec748ae (patch)
treeaeab360ac4c1aa14f50b638f9b799dad8df55ff8 /src/start.ts
parent115210bfd9a5ae7bb8b516ce0d2cf3d9042dead7 (diff)
Run Prettier on all files
Diffstat (limited to 'src/start.ts')
-rwxr-xr-xsrc/start.ts22
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}`,
+ );
});