Skip to content

Commit a80b84c

Browse files
committed
use default setup functions
1 parent f541f2c commit a80b84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pubsub.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class SubscriptionManager {
8484
constructor(options: { schema: GraphQLSchema, setupFunctions: {[subscriptionName: string]: Function} }){
8585
this.pubsub = new FilteredPubSub();
8686
this.schema = options.schema;
87-
this.setupFunctions = options.setupFunctions;
87+
this.setupFunctions = options.setupFunctions || {};
8888
this.subscriptions = {};
8989
this.maxSubscriptionId = 0;
9090
}

0 commit comments

Comments
 (0)