mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +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, {
|
||||
extraMessage: 'Error while sending a webhook request.',
|
||||
userId: user._id,
|
||||
webhook,
|
||||
webhookId: webhook.id,
|
||||
});
|
||||
|
||||
let _failuresReset = false;
|
||||
|
||||
Reference in New Issue
Block a user