Skip to content

Commit

Permalink
fix: fixed issue with directive resolver (coralproject#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattjoh authored Oct 25, 2019
1 parent 4038fcb commit a7eb757
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coralproject/talk",
"version": "5.2.1",
"version": "5.2.2",
"author": "The Coral Project",
"homepage": "https://coralproject.net/",
"sideEffects": [
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/graph/common/directives/constraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class extends SchemaDirectiveVisitor {
}
) {
const originalResolver = details.field.resolve || defaultFieldResolver;
details.field.resolve = async (...resolveArgs) => {
details.field.resolve = (...resolveArgs) => {
const argName = argument.name;
const args = resolveArgs[1]; // (parent, args, context, info)
const valueToValidate = args[argName];
Expand Down

0 comments on commit a7eb757

Please sign in to comment.