diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-19 09:41:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:48:44 +0100 |
commit | 3bb6c52645af84832212c99fdec04143e4230180 (patch) | |
tree | d91539e2aed89bdd0e6d0530db5e92da45e20fb9 /server/models/account/user.ts | |
parent | 2519d9fec6f84906d1b10770be791ad367186ca7 (diff) | |
download | PeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.gz PeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.zst PeerTube-3bb6c52645af84832212c99fdec04143e4230180.zip |
Fix sort inconsistency
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<UserModel> { | |||
125 | const query = { | 125 | const query = { |
126 | offset: start, | 126 | offset: start, |
127 | limit: count, | 127 | limit: count, |
128 | order: [ getSort(sort) ] | 128 | order: getSort(sort), |
129 | } | 129 | } |
130 | 130 | ||
131 | return UserModel.findAndCountAll(query) | 131 | return UserModel.findAndCountAll(query) |