From df1b0a96f4d0cfd924cae3c50d16ec0a5278af62 Mon Sep 17 00:00:00 2001 From: Hubert Date: Fri, 18 Aug 2023 05:36:41 -0300 Subject: [PATCH] Server: Fixes #8308: Sorting users by "total size" leads to a crash (#8680) --- packages/server/src/routes/admin/users.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/server/src/routes/admin/users.ts b/packages/server/src/routes/admin/users.ts index 20ae29918..80b3ddc9e 100644 --- a/packages/server/src/routes/admin/users.ts +++ b/packages/server/src/routes/admin/users.ts @@ -135,7 +135,7 @@ router.get('admin/users', async (_path: SubPath, ctx: AppContext) => { label: _('Email'), }, { - name: 'account', + name: 'account_type', label: _('Account'), }, { @@ -143,15 +143,15 @@ router.get('admin/users', async (_path: SubPath, ctx: AppContext) => { label: _('Max Item Size'), }, { - name: 'total_size', + name: 'total_item_size', label: _('Total Size'), }, { - name: 'max_total_size', + name: 'max_total_item_size', label: _('Max Total Size'), }, { - name: 'can_share', + name: 'can_share_folder', label: _('Can Share'), }, ],