Commit fecf0818 authored by 이재연's avatar 이재연
Browse files

aa

parent ef4c3577
......@@ -137,6 +137,7 @@ const joinChannel = async (req, res) => {
const room = await Room.findOne({ where: { id: roomId } });
room.channel[index][channelName].push(plusUser);
await Room.update({ channel: room.channel }, { where: { id: roomId } });
return res.json(true)
} catch (error) {
res.status(500).send("error");
}
......@@ -148,6 +149,7 @@ const doubleJoin = async (req, res) => {
const room = await Room.findOne({ where: { id: roomId } });
room.channel[index1][joinChName].splice(index2, 1);
await Room.update({ channel: room.channel }, { where: { id: roomId } });
return res.json(true)
} catch (error) {
res.status(500).send("error");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment