updated EmailNotificationScheduleTypes to match with the backend values

This commit is contained in:
Valentin 2021-11-10 12:01:55 +02:00
parent 2dbe010982
commit 070df8a0ab
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
export const notificationsTranslations: { [key: string]: string } = {
instant: _('notifications-screen.schedule.instant'),
daily: _('notifications-screen.schedule.daily'),
weekly: _('notifications-screen.schedule.weekly'),
daily: _('notifications-screen.schedule.instant'),
daily_summary: _('notifications-screen.schedule.daily'),
weekly_summary: _('notifications-screen.schedule.weekly'),
inAppNotifications: _('notifications-screen.category.in-app-notifications'),
emailNotifications: _('notifications-screen.category.email-notifications'),
documentIsSentForApproval: _('notifications-screen.options.document-is-sent-for-approval'),

View File

@ -1,7 +1,7 @@
export const EmailNotificationScheduleTypes = {
INSTANT: 'INSTANT',
DAILY: 'DAILY',
WEEKLY: 'WEEKLY',
INSTANT: 'DAILY',
DAILY: 'DAILY_SUMMARY',
WEEKLY: 'WEEKLY_SUMMARY',
} as const;
export type EmailNotificationScheduleType = keyof typeof EmailNotificationScheduleTypes;