feat: #7743, finish user module

This commit is contained in:
Barış Soner Uşaklı
2019-07-16 20:44:00 -04:00
parent 6fea46b6e2
commit a51ec591ee
6 changed files with 268 additions and 426 deletions

View File

@@ -129,8 +129,8 @@ Notifications.push = async function (notification, uids) {
}
setTimeout(function () {
batch.processArray(uids, function (uids, next) {
pushToUids(uids, notification, next);
batch.processArray(uids, async function (uids) {
await pushToUids(uids, notification);
}, { interval: 1000 }, function (err) {
if (err) {
winston.error(err.stack);