Skip to content

Commit

Permalink
Merge pull request #140 from juodumas/patch-1
Browse files Browse the repository at this point in the history
Fix copy paste typo in queryWithCurrentUser hook.
  • Loading branch information
ekryski authored and daffl committed Aug 29, 2018
1 parent c2496b6 commit a5cb251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/authentication/src/hooks/query-with-current-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const defaults = {
export default function(options = {}) {
return function(hook) {
if (hook.type !== 'before') {
throw new Error(`The 'associateCurrentUser' hook should only be used as a 'before' hook.`);
throw new Error(`The 'queryWithCurrentUser' hook should only be used as a 'before' hook.`);
}

if (!hook.params.user) {
Expand All @@ -27,4 +27,4 @@ export default function(options = {}) {

hook.params.query[options.as] = id;
};
}
}

0 comments on commit a5cb251

Please # to comment.