Skip to content

Commit

Permalink
Merge pull request #1005 from parlemonde/fix/update-user-post-createdAt
Browse files Browse the repository at this point in the history
Update schema for updating user
  • Loading branch information
Benjyhy authored Nov 13, 2024
2 parents 086e7b7 + 64314c0 commit e274921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/controllers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ type EditUserData = {
firstname?: string;
lastname?: string;
countryCode?: string;
createdAt?: string;
level?: string;
school?: string;
city?: string;
Expand All @@ -324,6 +325,7 @@ const EDIT_SCHEMA: JSONSchemaType<EditUserData> = {
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 },
Expand Down

0 comments on commit e274921

Please sign in to comment.