Skip to content

Commit

Permalink
Update Comments res
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 19, 2023
1 parent 937d191 commit 4951d20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/resolvers/Mutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ const Mutation = {
},

updateImageComment: async (_, { input }, context) => {
const comment = await context.models.Image.updateComment(input, context);
return { comment };
const res = await context.models.Image.updateComment(input, context);
return { ...res };
},

createImageComment: async (_, { input }, context) => {
const comment = await context.models.Image.createComment(input, context);
return { comment };
const res = await context.models.Image.createComment(input, context);
return { ...res };
},

createImage: async (_, { input }, context) => {
Expand Down

0 comments on commit 4951d20

Please sign in to comment.