From f984f7d152c28bad13e5067da2509495ce06ba6c Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Thu, 17 Oct 2024 00:08:36 +0200 Subject: [PATCH] fix: lint errors in calendar store Signed-off-by: Alexander Trost --- app/store/calendar.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/store/calendar.ts b/app/store/calendar.ts index f48ea0ce4..651ddb9e3 100644 --- a/app/store/calendar.ts +++ b/app/store/calendar.ts @@ -25,6 +25,8 @@ import type { import { useNotificatorStore } from './notificator'; import { useSettingsStore } from './settings'; +const logger = useLogger('📅 Calendar'); + export interface CalendarState { activeCalendarIds: string[]; weeklyView: boolean; @@ -116,7 +118,9 @@ export const useCalendarStore = defineStore('calendar', { useSound().play({ name: 'notification' }); }); - } catch (e) {} + } catch (e) { + logger.error('error while getting upcoming events', e); + } }, // Calendars async getCalendar(req: GetCalendarRequest): Promise {