fix: return provisioners in desc order and add limit to cli (#16720)

This commit is contained in:
Mathias Fredriksson
2025-02-26 21:06:51 +02:00
committed by GitHub
parent 7c035a4d98
commit 7cd6e9cdd6
8 changed files with 36 additions and 6 deletions
@@ -111,7 +111,7 @@ WHERE
AND (COALESCE(array_length(@ids::uuid[], 1), 0) = 0 OR pd.id = ANY(@ids::uuid[]))
AND (@tags::tagset = 'null'::tagset OR provisioner_tagset_contains(pd.tags::tagset, @tags::tagset))
ORDER BY
pd.created_at ASC
pd.created_at DESC
LIMIT
sqlc.narg('limit')::int;