feat(graphql): validate timezone id as a GraphQL Scalar

Related to #1299

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-06-05 09:12:02 +02:00
parent 2dd0e13eba
commit 845bb6ac90
9 changed files with 46 additions and 10 deletions

View File

@@ -295,7 +295,7 @@ export const JOIN_EVENT = gql`
$email: String
$message: String
$locale: String
$timezone: String
$timezone: Timezone
) {
joinEvent(
eventId: $eventId

View File

@@ -151,7 +151,7 @@ export const LOGGED_USER_TIMEZONE = gql`
export const SET_USER_SETTINGS = gql`
mutation SetUserSettings(
$timezone: String
$timezone: Timezone
$notificationOnDay: Boolean
$notificationEachWeek: Boolean
$notificationBeforeEvent: Boolean