sdy

update createRoom resolver

......@@ -3,7 +3,7 @@ import { prisma } from "../../../utils";
export default {
Mutation: {
createRoom: async (_, args) => {
const { participantsId, categories } = args;
const { participantsId, categories, name } = args;
let newRoom, participantId;
if (participantsId !== undefined) {
newRoom = await prisma.room.create({
......@@ -15,6 +15,7 @@ export default {
)),
},
},
name,
},
});
}
......@@ -26,6 +27,7 @@ export default {
id: (category = categories.forEach((cur, _, __) => cur)),
},
},
name,
},
});
}
......