From 387a1b28c3e3ff0ad1c4fa6862e3162b6b3298f0 Mon Sep 17 00:00:00 2001 From: Pavel Gnedov Date: Tue, 7 Nov 2023 02:39:27 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BB=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/event-emitter/src/utils/string-with-dates-parser.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/event-emitter/src/utils/string-with-dates-parser.ts b/libs/event-emitter/src/utils/string-with-dates-parser.ts index b1c39ec..62225cd 100644 --- a/libs/event-emitter/src/utils/string-with-dates-parser.ts +++ b/libs/event-emitter/src/utils/string-with-dates-parser.ts @@ -35,7 +35,9 @@ export function parse(str: string, params?: Moo.Rules): Moo.Token[] { } return res; } catch (ex) { - logger.error(`Error at parse str=${str} with params=${params}, error message - ${ex}`); + logger.error( + `Error at parse str=${str} with params=${params}, error message - ${ex}`, + ); return []; } } @@ -140,7 +142,7 @@ export function parseToCalendarEvent( to = date1.set({ hour: time2.hours, minute: time2.minutes, - second: time2.seconds + second: time2.seconds, }); } else { to = from.plus(Luxon.Duration.fromMillis(DEFAULT_EVENT_DURATION));