From 3a5ea5d4ff2abf4dd3416f698361e6073e1e51fa Mon Sep 17 00:00:00 2001 From: Sammy Date: Fri, 23 Jun 2023 19:30:17 +0200 Subject: [PATCH] improve message clarity when no start date in event found --- server/helper/dateHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/helper/dateHelper.ts b/server/helper/dateHelper.ts index f51752a..914f533 100644 --- a/server/helper/dateHelper.ts +++ b/server/helper/dateHelper.ts @@ -5,7 +5,7 @@ import { logger } from "../logger"; export function createDateStringFromEvent(event: GuildScheduledEvent, requestId: string, guildId?: string): string { if(!event.scheduledStartAt) { logger.error("Event has no start. Cannot create dateString.", {guildId, requestId}) - return "habe keinen Startzeitpunkt ermitteln können" + return `"habe keinen Startzeitpunkt ermitteln können"` } const date = format(event.scheduledStartAt, "dd.MM")