From a5cb251c3a3786000642ba4bfd0361edc4d5e581 Mon Sep 17 00:00:00 2001 From: Eric Kryski Date: Wed, 30 Mar 2016 19:21:29 -0600 Subject: [PATCH] Merge pull request #140 from juodumas/patch-1 Fix copy paste typo in queryWithCurrentUser hook. --- packages/authentication/src/hooks/query-with-current-user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/authentication/src/hooks/query-with-current-user.js b/packages/authentication/src/hooks/query-with-current-user.js index 6164c2ead7..46bd5caaf3 100644 --- a/packages/authentication/src/hooks/query-with-current-user.js +++ b/packages/authentication/src/hooks/query-with-current-user.js @@ -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) { @@ -27,4 +27,4 @@ export default function(options = {}) { hook.params.query[options.as] = id; }; -} \ No newline at end of file +}