Skip to content

Commit

Permalink
Updated Server
Browse files Browse the repository at this point in the history
  • Loading branch information
myhendry committed May 1, 2018
1 parent a01fd5e commit 776dce0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/resolvers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const resolvers = {
getTweets: async (root, args, { user }) => {
try {
await requireAuth(user);
// console.log("USER", user);
const tweets = Tweet.find({}).sort({ createdAt: -1 });
return tweets;
} catch (error) {
Expand Down

0 comments on commit 776dce0

Please sign in to comment.