diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-28 16:15:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-28 16:34:08 +0200 |
commit | 9e5cf66be7ad897e106f283bee73a165c72e74de (patch) | |
tree | 16de6f775c412281236b8f99be8e5118e5a6ff71 /server/models/user | |
parent | 3f9decbd01d25f1b1805e2764dff4beae7d36c19 (diff) | |
download | PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.tar.gz PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.tar.zst PeerTube-9e5cf66be7ad897e106f283bee73a165c72e74de.zip |
Breaking API: Consistency with role id/label
Diffstat (limited to 'server/models/user')
-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, |