mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 02:02:19 +00:00
fix(logs): FCM, only log defined errors
This commit is contained in:
parent
2001b27c26
commit
2062e78959
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,9 @@ function sendNotification (user, details = {}) {
|
|||
|
||||
fcmSender.send(message, {
|
||||
registrationTokens: [pushDevice.regId],
|
||||
}, 10, err => logger.error(err, 'FCM Error'));
|
||||
}, 10, err => {
|
||||
if (err) logger.error(err, 'FCM Error');
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue