diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/user/user.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 34329580b..f70feed73 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -891,8 +891,10 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
891 | autoPlayNextVideoPlaylist: this.autoPlayNextVideoPlaylist, | 891 | autoPlayNextVideoPlaylist: this.autoPlayNextVideoPlaylist, |
892 | videoLanguages: this.videoLanguages, | 892 | videoLanguages: this.videoLanguages, |
893 | 893 | ||
894 | role: this.role, | 894 | role: { |
895 | roleLabel: USER_ROLE_LABELS[this.role], | 895 | id: this.role, |
896 | label: USER_ROLE_LABELS[this.role] | ||
897 | }, | ||
896 | 898 | ||
897 | videoQuota: this.videoQuota, | 899 | videoQuota: this.videoQuota, |
898 | videoQuotaDaily: this.videoQuotaDaily, | 900 | videoQuotaDaily: this.videoQuotaDaily, |