Skip to content
Snippets Groups Projects

[#7] Friend 서비스 로직 개발

Merged 조대희 requested to merge feature/#7 into develop
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
@@ -33,6 +33,24 @@ class friendService {
status: 'PENDING'
});
}
/**
* 받은 친구 요청 목록 조회
*/
async getReveivedRequests(userId) {
return Friend.findAll({
where: {
friend_id: userId,
status: 'PENDING'
},
include: [{
model: User,
as: 'user',
attributes: ['id', 'name', 'email']
}]
});
}
}
module.exports = new FriendService();
\ No newline at end of file
Loading