This commit is contained in:
Chi Vinh Le
2017-06-12 23:45:46 +07:00
parent d628c26693
commit 70177d3a2c
4 changed files with 4 additions and 3 deletions
-1
View File
@@ -13,7 +13,6 @@ const Action = {
// This will load the user for the specific action. We'll limit this to the
// admin users only or the current logged in user.
user({user_id}, _, {loaders: {Users}, user}) {
console.log(user);
if (user && (user.can(SEARCH_OTHER_USERS) || user_id === user.id)) {
return Users.getByID.load(user_id);
}
+1 -1
View File
@@ -62,7 +62,7 @@ const createSubscriptionManager = (server) => new SubscriptionServer({
try {
req = await deserializeUser(upgradeReq);
} catch (e) {
console.error(connection);
console.error(e);
return new Context({}, pubsub);
}