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 Query: { 4 Query: {
5 getRoomByName: async (_, args, { request }) => { 5 getRoomByName: async (_, args, { request }) => {
6 isAuthenticated(request); 6 isAuthenticated(request);
...@@ -10,6 +10,6 @@ export default () => { ...@@ -10,6 +10,6 @@ export default () => {
10 name: roomName, 10 name: roomName,
11 }, 11 },
12 }); 12 });
13 - }; 13 + },
14 - } 14 + },
15 }; 15 };
......