sdy

fix error syntax

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 };
......