server-ts: Address requested changes

This commit is contained in:
Elian Doran
2024-04-16 21:10:39 +03:00
parent 8629993fe4
commit 138be84e45
3 changed files with 7 additions and 3 deletions

View File

@@ -239,6 +239,10 @@ function parseBoolean(obj: any, name: string) {
}
function parseOrderDirection(obj: any, name: string) {
if (!(name in obj)) {
return undefined;
}
const integer = parseInt(obj[name]);
if (!['asc', 'desc'].includes(obj[name])) {