Skip to content
Snippets Groups Projects

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

Merged 조대희 requested to merge feature/#7 into develop
1 file
+ 18
1
Compare changes
  • Side-by-side
  • Inline
+ 18
1
@@ -51,6 +51,23 @@ class friendService {
});
}
/**
* 보낸 친구 요청 목록 조회
*/
async getSentRequests(userId) {
return Friend.findAll({
where: {
user_Id: userId,
status: 'PENDING'
},
include: [{
model: User,
as: 'friend',
attributes: ['id', 'name', 'email']
}]
});
}
/**
* 친구 요청 수락
*/
@@ -88,7 +105,7 @@ class friendService {
return result;
}
}
module.exports = new FriendService();
\ No newline at end of file
Loading