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

Merge remote-tracking branch 'origin/seoyeon2' into jaeyeoniiiiii

parents e3633632 0b842128
...@@ -3,7 +3,6 @@ import { Link } from 'react-router-dom' ...@@ -3,7 +3,6 @@ import { Link } from 'react-router-dom'
import roomApi from '../../apis/room.api'; import roomApi from '../../apis/room.api';
import userApi from '../../apis/user.api'; import userApi from '../../apis/user.api';
const RoomSingle = () => { const RoomSingle = () => {
const [roomNum, setRoomNum] = useState('') const [roomNum, setRoomNum] = useState('')
const [room, setRoom] = useState([]) const [room, setRoom] = useState([])
......
...@@ -34,7 +34,7 @@ const InvitePage = () => { ...@@ -34,7 +34,7 @@ const InvitePage = () => {
> >
{/* 방 부분 */} {/* 방 부분 */}
<p style={{ marginBottom: "0px", fontSize: "16px" }}>초대받은 </p> <p style={{ marginBottom: "0px", fontSize: "16px" }}>초대받은 </p>
{/* <img src={RoomImage} style={{ width: "90px", height: "90px" }}></img> */} <img style={{ width: "90px", height: "90px" }}></img>
<p style={{ marginBottom: "0px", fontSize: "16px" }}> <p style={{ marginBottom: "0px", fontSize: "16px" }}>
id: {/*${roomid}*/} id: {/*${roomid}*/}
</p> </p>
......
...@@ -23,9 +23,7 @@ const update = async (req, res) => { ...@@ -23,9 +23,7 @@ const update = async (req, res) => {
} }
}; };
const getUser = async (req, res) => { const getUser = async (req, res) => {
// console.log('req.params:',req.params) const user = await User.findOne({ where: { id: req.body.id } });
const user = await User.findOne({ where: { id: req.params.id } });
// console.log('user:',user)
res.json(user) res.json(user)
}; };
......
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