Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
fix(NA): removed typo from condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed May 12, 2017
1 parent 3ab4d65 commit 407969e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Expand Up @@ -106,7 +106,7 @@ class ExecuteAdapters {
operationName?: string,
) => ({
subscribe: (observer) => {
if (ExecuteAdapters.isASubscriptionOperation(document, operationName) && !subscribeFn) {
if (ExecuteAdapters.isASubscriptionOperation(document, operationName)) {
if (!subscribeFn) {
observer.error(new Error('Subscriptions are not supported'));
}
Expand Down

0 comments on commit 407969e

Please sign in to comment.