From 29ea96a5e581e16b1231d4c2e34fb5008568276f Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sun, 19 Nov 2023 14:35:26 +0100 Subject: [PATCH] Fixed new scheduled event --- bot/src/bot_graphql/mutations/scheduled_event_mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/src/bot_graphql/mutations/scheduled_event_mutation.py b/bot/src/bot_graphql/mutations/scheduled_event_mutation.py index c3e2dbbc..6544bb42 100644 --- a/bot/src/bot_graphql/mutations/scheduled_event_mutation.py +++ b/bot/src/bot_graphql/mutations/scheduled_event_mutation.py @@ -45,7 +45,7 @@ class ScheduledEventMutation(QueryABC): input["channelId"] if "channelId" in input else None, datetime.strptime(input["startTime"], "%Y-%m-%dT%H:%M:%S.%fZ"), datetime.strptime(input["endTime"], "%Y-%m-%dT%H:%M:%S.%fZ") if "endTime" in input else None, - input["entityType"], + EntityType(int(input["entityType"])), input["location"] if "location" in input else None, server, )