Add validation on Constitution routes

This commit is contained in:
2021-04-10 23:45:16 +02:00
parent 0c8bcbd634
commit 6a5e00bb4d
7 changed files with 120 additions and 17 deletions

View File

@@ -22,14 +22,14 @@ begin
case direction when 'asc' then
case sort
when 'title' then c.title
when 'created_at' then c.created_at::text
when 'createdAt' then c.created_at::text
else null
end
end,
case direction when 'desc' then
case sort
when 'title' then c.title
when 'created_at' then c.created_at::text
when 'createdAt' then c.created_at::text
end
end
desc,