diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-06-13 20:01:06 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-13 20:01:06 -0400 |
| commit | aa40b8ca0d777c1b7ae87a2708f3ed1d748e93f0 (patch) | |
| tree | 2283d77e4ae234c56ef6c4732a8f27f493de255d /packages/backend/src | |
| parent | merge: Fix uncaught exception hooks and add more shutdown logging. (!1111) (diff) | |
| download | sharkey-aa40b8ca0d777c1b7ae87a2708f3ed1d748e93f0.tar.gz sharkey-aa40b8ca0d777c1b7ae87a2708f3ed1d748e93f0.tar.bz2 sharkey-aa40b8ca0d777c1b7ae87a2708f3ed1d748e93f0.zip | |
show signup reason in user admin screen
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/models/json-schema/user.ts | 20 | ||||
| -rw-r--r-- | packages/backend/src/server/api/endpoints/admin/show-user.ts | 4 |
2 files changed, 14 insertions, 10 deletions
diff --git a/packages/backend/src/models/json-schema/user.ts b/packages/backend/src/models/json-schema/user.ts index 2e5364f404..1678cab067 100644 --- a/packages/backend/src/models/json-schema/user.ts +++ b/packages/backend/src/models/json-schema/user.ts @@ -73,6 +73,16 @@ export const packedUserLiteSchema = { type: 'string', nullable: true, optional: false, }, + description: { + type: 'string', + nullable: true, optional: false, + example: 'Hi masters, I am Ai!', + }, + createdAt: { + type: 'string', + nullable: false, optional: false, + format: 'date-time', + }, avatarDecorations: { type: 'array', nullable: false, optional: false, @@ -278,11 +288,6 @@ export const packedUserDetailedNotMeOnlySchema = { nullable: false, optional: false, }, }, - createdAt: { - type: 'string', - nullable: false, optional: false, - format: 'date-time', - }, updatedAt: { type: 'string', nullable: true, optional: false, @@ -324,11 +329,6 @@ export const packedUserDetailedNotMeOnlySchema = { nullable: false, optional: false, example: false, }, - description: { - type: 'string', - nullable: true, optional: false, - example: 'Hi masters, I am Ai!', - }, location: { type: 'string', nullable: true, optional: false, diff --git a/packages/backend/src/server/api/endpoints/admin/show-user.ts b/packages/backend/src/server/api/endpoints/admin/show-user.ts index 6a77fc177f..6f0081f1f7 100644 --- a/packages/backend/src/server/api/endpoints/admin/show-user.ts +++ b/packages/backend/src/server/api/endpoints/admin/show-user.ts @@ -221,6 +221,10 @@ export const meta = { }, }, }, + signupReason: { + type: 'string', + optional: false, nullable: true, + }, }, }, } as const; |