Add validation on route GetArticleComments

This commit is contained in:
2021-04-09 18:06:32 +02:00
parent 875d0bfffa
commit f5c1aa29e8
7 changed files with 57 additions and 24 deletions

View File

@@ -26,7 +26,7 @@ begin
else null
end desc,
case sort
when 'created_at' then com.created_at::text
when 'createdAt' then com.created_at::text
else null
end desc,
com.created_at desc