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 | 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 | }; | ... | ... |
-
Please register or login to post a comment