mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Update sentry context
This commit is contained in:
@@ -199,6 +199,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise
|
|||||||
Sentry.captureException(e, {
|
Sentry.captureException(e, {
|
||||||
extra: {
|
extra: {
|
||||||
message: data.current,
|
message: data.current,
|
||||||
|
bookId,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -228,6 +229,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise
|
|||||||
Sentry.captureException(e, {
|
Sentry.captureException(e, {
|
||||||
extra: {
|
extra: {
|
||||||
message: data.current,
|
message: data.current,
|
||||||
|
bookId,
|
||||||
|
page,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -262,6 +265,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise
|
|||||||
Sentry.captureException(e, {
|
Sentry.captureException(e, {
|
||||||
extra: {
|
extra: {
|
||||||
message: data.current,
|
message: data.current,
|
||||||
|
authorId,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -291,6 +295,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise
|
|||||||
Sentry.captureException(e, {
|
Sentry.captureException(e, {
|
||||||
extra: {
|
extra: {
|
||||||
message: data.current,
|
message: data.current,
|
||||||
|
authorId,
|
||||||
|
page,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user