mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(logs): do not log mongoose object with id and no _id to avoid crashes, see https://github.com/davidmarkclements/fast-safe-stringify/issues/43
This commit is contained in:
@@ -22,7 +22,7 @@ function sendWebhook (webhook, body, user) {
|
|||||||
logger.error(webhookErr, {
|
logger.error(webhookErr, {
|
||||||
extraMessage: 'Error while sending a webhook request.',
|
extraMessage: 'Error while sending a webhook request.',
|
||||||
userId: user._id,
|
userId: user._id,
|
||||||
webhook,
|
webhookId: webhook.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
let _failuresReset = false;
|
let _failuresReset = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user