aktueller stand
This commit is contained in:
@@ -324,6 +324,30 @@ async function sendAdminBookingErrorNotification({ profileId, profileEmail, stor
|
||||
});
|
||||
}
|
||||
|
||||
async function sendAdminSessionErrorNotification({
|
||||
profileId,
|
||||
profileEmail,
|
||||
profileName,
|
||||
sessionId,
|
||||
error,
|
||||
label
|
||||
}) {
|
||||
const profileLabel = profileEmail || profileId || 'Unbekanntes Profil';
|
||||
const messageLines = [
|
||||
'Session-Login fehlgeschlagen.',
|
||||
`Profil: ${profileLabel}.`,
|
||||
profileName ? `Name: ${profileName}.` : null,
|
||||
sessionId ? `Session: ${sessionId}.` : null,
|
||||
label ? `Kontext: ${label}.` : null,
|
||||
`Fehler: ${error || 'Unbekannter Fehler'}.`
|
||||
].filter(Boolean);
|
||||
await sendAdminTelegramNotification({
|
||||
title: 'Fehler beim Session-Login',
|
||||
message: messageLines.join('\n'),
|
||||
priority: 'high'
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sendSlotNotification,
|
||||
sendStoreWatchNotification,
|
||||
@@ -332,5 +356,6 @@ module.exports = {
|
||||
sendDesiredWindowMissedNotification,
|
||||
sendDormantPickupWarning,
|
||||
sendJournalReminderNotification,
|
||||
sendAdminBookingErrorNotification
|
||||
sendAdminBookingErrorNotification,
|
||||
sendAdminSessionErrorNotification
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user