Skip to content

Commit

Permalink
fix: handle persistent query error
Browse files Browse the repository at this point in the history
  • Loading branch information
AudioVisuaali committed Sep 24, 2021
1 parent d54532b commit 7fc34f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/express/middleware/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const apolloErrorHandler =
return error;
}

if (error.originalError instanceof PersistedQueryNotFoundError) {
if (error instanceof PersistedQueryNotFoundError) {
// We want to compare error not error.originalError
return error;
}

Expand Down

0 comments on commit 7fc34f6

Please sign in to comment.