Skip to content

Commit

Permalink
Update schema for updating user
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjyhy committed Nov 13, 2024
1 parent 90cf6d4 commit 64314c0
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 @@ -292,6 +292,7 @@ type EditUserData = {
firstname?: string;
lastname?: string;
countryCode?: string;
createdAt?: string;
level?: string;
school?: string;
city?: string;
Expand All @@ -317,6 +318,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 64314c0

Please sign in to comment.