fix(promise): make sure every promise is handled

This commit is contained in:
Matteo Pagliazzi
2020-03-20 20:07:13 +01:00
parent de37eb1bb2
commit ae7df804cb
5 changed files with 20 additions and 9 deletions

View File

@@ -76,7 +76,8 @@ function sendNotification (user, details = {}) {
logger.error('APN transmissionError', failure.status, notification, failure.device);
}
});
});
})
.catch(err => logger.error(err, 'APN error'));
}
break;
}