Notification: Set a new Friendship and Accepted Friendship
This commit is contained in:
@@ -101,11 +101,10 @@ router.get('/:username/:lastdataread/:idapp', authenticate, (req, res) => {
|
||||
return res.status(404).send({code: server_constants.RIS_CODE_NOT_MY_USERNAME});
|
||||
}
|
||||
|
||||
// Extract all the todos of the userId only
|
||||
return SendNotif.findAllNotifByUsernameIdAndIdApp(username, lastdataread, idapp).then((arrnotif) => {
|
||||
// const wait = new Promise((resolve, reject) => {
|
||||
// setTimeout(() => {
|
||||
res.send({arrnotif});
|
||||
return res.send({arrnotif});
|
||||
// }, 2000);
|
||||
// });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user