Redux installed, reducer added

This commit is contained in:
Luis Fernando Molina committed 2018-09-08 10:06:16 +02:00
1 parent 2fde69f808
commit 3eb9afc83c
7 files changed
+2626 -2641

No files matched your search

-6
View File
@@ -81,17 +81,11 @@ const RootQuery = new GraphQLObjectType({
return new Promise((resolve, reject) => {
console.log('args.authId');
console.log(args.authId);
User.findOne({authId: args.authId}, (err, user) => {
if(err) reject(err);
else{
console.log('user.authId');
console.log(user.authId);
if (user.authId === args.authId && user.authId !== undefined) {
console.log(user);
console.log(user);
return resolve(user);
} else {
return null;