diff options
Diffstat (limited to 'server/models/utils.ts')
-rw-r--r-- | server/models/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/utils.ts b/server/models/utils.ts index fd84a9239..7ba96815e 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | // Translate for example "-name" to [ 'name', 'DESC' ] | 1 | // Translate for example "-name" to [ 'name', 'DESC' ] |
2 | function getSort (value) { | 2 | function getSort (value: string) { |
3 | let field | 3 | let field: string |
4 | let direction | 4 | let direction: 'ASC' | 'DESC' |
5 | 5 | ||
6 | if (value.substring(0, 1) === '-') { | 6 | if (value.substring(0, 1) === '-') { |
7 | direction = 'DESC' | 7 | direction = 'DESC' |