Skip to content

Commit 3184566

Browse files
committed
remove unneeded database connection
1 parent 2f3661a commit 3184566

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

workers/notifier/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export default class NotifierWorker extends Worker {
2525
* Database Controllers
2626
*/
2727
private accountsDb: DatabaseController = new DatabaseController(process.env.MONGO_ACCOUNTS_DATABASE_URI);
28-
private eventsDb: DatabaseController = new DatabaseController(process.env.MONGO_EVENTS_DATABASE_URI);
2928

3029
/**
3130
* Redis helper instance for modifying data through redis
@@ -37,7 +36,6 @@ export default class NotifierWorker extends Worker {
3736
*/
3837
public async start(): Promise<void> {
3938
await this.accountsDb.connect();
40-
await this.eventsDb.connect();
4139
await super.start();
4240
}
4341

@@ -47,7 +45,6 @@ export default class NotifierWorker extends Worker {
4745
public async finish(): Promise<void> {
4846
await super.finish();
4947
await this.accountsDb.close();
50-
await this.eventsDb.close();
5148
}
5249

5350
/**

0 commit comments

Comments
 (0)