From 64314c0795021d9a6a4aa11eddba433dcf92569a Mon Sep 17 00:00:00 2001 From: Benjamin Ramet Date: Wed, 13 Nov 2024 11:18:10 +0100 Subject: [PATCH] Update schema for updating user --- server/controllers/user.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/controllers/user.ts b/server/controllers/user.ts index e9b71c021..0ecbf907f 100644 --- a/server/controllers/user.ts +++ b/server/controllers/user.ts @@ -292,6 +292,7 @@ type EditUserData = { firstname?: string; lastname?: string; countryCode?: string; + createdAt?: string; level?: string; school?: string; city?: string; @@ -317,6 +318,7 @@ const EDIT_SCHEMA: JSONSchemaType = { firstname: { type: 'string', nullable: true }, lastname: { type: 'string', nullable: true }, countryCode: { type: 'string', nullable: true }, + createdAt: { type: 'string', nullable: true }, level: { type: 'string', nullable: true }, school: { type: 'string', nullable: true }, city: { type: 'string', nullable: true },