Skip to content
Snippets Groups Projects
Commit af906d5f authored by 조대희's avatar 조대희
Browse files

bugfix: req/res 수정

parent 0046612e
No related branches found
No related tags found
1 merge request!43배포코드 master브랜치로
......@@ -12,7 +12,7 @@ class friendController {
async sendFriendRequest(req, res) {
try {
return await performanceMonitor.measureAsync('sendFriendRequest', async () => {
const email = req.body;
const { email } = req.body;
const userId = req.user.id;
if (!userId || !email) {
......@@ -162,7 +162,9 @@ class friendController {
return res.status(200).json({
success: true,
data: friends
data: {
...friends
}
});
});
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment