Skip to content

Commit 24c9cb1

Browse files
author
Johannes Reppin
committed
fix linting issues
1 parent c449109 commit 24c9cb1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/main.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import session from "express-session";
2-
import MongoStore from 'connect-mongo';
2+
import MongoStore from "connect-mongo";
33
import { NestFactory } from "@nestjs/core";
44
import {
55
DocumentBuilder,
@@ -106,7 +106,7 @@ async function bootstrap() {
106106
saveUninitialized: true,
107107
store: MongoStore.create({
108108
mongoUrl, // MongoDB connection string
109-
collectionName: 'sessions', // Collection name for storing sessions
109+
collectionName: "sessions", // Collection name for storing sessions
110110
ttl: 24 * 60 * 60, // Session TTL (24 hours)
111111
}),
112112
cookie: {
@@ -117,10 +117,7 @@ async function bootstrap() {
117117
}
118118

119119
const port = configService.get<number>("port") ?? 3000;
120-
Logger.log(
121-
"MongoDB URI : " + mongoUrl,
122-
"Main",
123-
);
120+
Logger.log("MongoDB URI : " + mongoUrl, "Main");
124121
Logger.log("Scicat Backend listening on port: " + port, "Main");
125122

126123
await app.listen(port);

0 commit comments

Comments
 (0)