improve message clarity when no start date in event found
Compile the repository / compile (pull_request) Successful in 4m8s
Details
Compile the repository / compile (pull_request) Successful in 4m8s
Details
This commit is contained in:
parent
45d87275bf
commit
3a5ea5d4ff
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue