From 3bb6c52645af84832212c99fdec04143e4230180 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 19 Feb 2018 09:41:03 +0100 Subject: Fix sort inconsistency --- server/models/account/account.ts | 2 +- server/models/account/user.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/account') diff --git a/server/models/account/account.ts b/server/models/account/account.ts index d8f305c37..54ec7cfcc 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts @@ -197,7 +197,7 @@ export class AccountModel extends Model { const query = { offset: start, limit: count, - order: [ getSort(sort) ] + order: getSort(sort), } return AccountModel.findAndCountAll(query) diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 653921907..292a5d150 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts @@ -125,7 +125,7 @@ export class UserModel extends Model { const query = { offset: start, limit: count, - order: [ getSort(sort) ] + order: getSort(sort), } return UserModel.findAndCountAll(query) -- cgit v1.2.3