Showing
1 changed file
with
3 additions
and
3 deletions
1 | import { prisma, isAuthenticated } from "../../../utils"; | 1 | import { prisma, isAuthenticated } from "../../../utils"; |
2 | 2 | ||
3 | -export default () => { | 3 | +export default { |
4 | Mutation: { | 4 | Mutation: { |
5 | wholeMessage: async (_, args, { request }) => { | 5 | wholeMessage: async (_, args, { request }) => { |
6 | isAuthenticated(request); | 6 | isAuthenticated(request); |
... | @@ -40,6 +40,6 @@ export default () => { | ... | @@ -40,6 +40,6 @@ export default () => { |
40 | }); | 40 | }); |
41 | } | 41 | } |
42 | return messageObj; | 42 | return messageObj; |
43 | - }; | 43 | + }, |
44 | - } | 44 | + }, |
45 | }; | 45 | }; | ... | ... |
-
Please register or login to post a comment