mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(logs): FCM, only log defined errors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user