Skip to content

Commit

Permalink
Refactor: es6
Browse files Browse the repository at this point in the history
  • Loading branch information
TaehyeonPark committed Nov 26, 2024
1 parent 378add6 commit 8bf1599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/stores/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ database.on("error", function (err) {
});

export const connectDatabase = (mongoUrl: string) => {
database.on("disconnected", function () {
database.on("disconnected", () => {
// 데이터베이스 연결이 끊어지면 5초 후 재연결을 시도합니다.
logger.error("Disconnected from database!");
setTimeout(() => {
Expand Down

0 comments on commit 8bf1599

Please sign in to comment.