Skip to content

Commit 09af401

Browse files
committed
remove unused mongo from externalService
1 parent 3288547 commit 09af401

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

server/src/core/server/graph/context.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ export default class GraphContext {
159159

160160
this.externalNotifications = new ExternalNotificationsService(
161161
this.config,
162-
this.logger,
163-
this.mongo
162+
this.logger
164163
);
165164

166165
this.notifications = new InternalNotificationContext(

server/src/core/server/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,7 @@ class Server {
262262

263263
const externalNotifications = new ExternalNotificationsService(
264264
this.config,
265-
logger,
266-
this.mongo
265+
logger
267266
);
268267

269268
// Create the Job Queue.

server/src/core/server/services/notifications/externalService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Logger from "bunyan";
22
import { Config } from "coral-server/config";
3-
import { MongoContext } from "coral-server/data/context";
43
import { Comment, getLatestRevision } from "coral-server/models/comment";
54
import { Site } from "coral-server/models/site";
65
import { getURLWithCommentID, Story } from "coral-server/models/story";
@@ -82,11 +81,9 @@ export class ExternalNotificationsService {
8281
private url?: string | null;
8382
private apiKey?: string | null;
8483
private logger: Logger;
85-
private mongo: MongoContext;
8684

87-
constructor(config: Config, logger: Logger, mongo: MongoContext) {
85+
constructor(config: Config, logger: Logger) {
8886
this.logger = logger;
89-
this.mongo = mongo;
9087

9188
this.url = config.get("external_notifications_api_url");
9289
this.apiKey = config.get("external_notifications_api_key");

0 commit comments

Comments
 (0)