File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 11import Logger from "bunyan" ;
22import { Config } from "coral-server/config" ;
3- import { MongoContext } from "coral-server/data/context" ;
43import { Comment , getLatestRevision } from "coral-server/models/comment" ;
54import { Site } from "coral-server/models/site" ;
65import { 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" ) ;
You can’t perform that action at this time.
0 commit comments