improve message clarity when no start date in event found
All checks were successful
Compile the repository / compile (pull_request) Successful in 4m8s
All checks were successful
Compile the repository / compile (pull_request) Successful in 4m8s
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 {
|
export function createDateStringFromEvent(event: GuildScheduledEvent, requestId: string, guildId?: string): string {
|
||||||
if(!event.scheduledStartAt) {
|
if(!event.scheduledStartAt) {
|
||||||
logger.error("Event has no start. Cannot create dateString.", {guildId, requestId})
|
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")
|
const date = format(event.scheduledStartAt, "dd.MM")
|
||||||
|
Loading…
Reference in New Issue
Block a user