Skip to content

Commit c1863e9

Browse files
committed
fix db.js
1 parent 45c768a commit c1863e9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/utils/db.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ export async function Init() {
1212

1313
await mongoClient.connect()
1414

15-
_db("Connected to MongoDB")
15+
logger.debug("Connected to MongoDB")
1616

1717
mongoSession = mongoClient.startSession()
1818

19-
_db("Started MongoDB Session")
19+
logger.debug("Started MongoDB Session")
2020

2121
redisClient = createClient({ url: config.REDIS_URI })
2222

2323
await redisClient.connect()
2424

25-
_db("Connected to Redis")
25+
logger.debug("Connected to Redis")
2626
}
2727

2828
export async function Close() {
29-
_db("Closing MongoDB Connection")
29+
logger.debug("Closing MongoDB Connection")
3030

3131
await mongoSession.endSession()
3232
await mongoClient.close()
@@ -63,7 +63,7 @@ export async function DeleteUserByID(id) {
6363

6464
const result = await collection.deleteOne({ id: id })
6565

66-
_db("Deleted a User")
66+
logger.warn("Deleted a User")
6767

6868
return result
6969
}

0 commit comments

Comments
 (0)