fix(server): /search/random API returns same assets every call (#15682)

* Fix for server searchRandom function not returning random results

* Fix lint
This commit is contained in:
sudbrack 2025-01-26 08:06:18 -06:00 committed by GitHub
parent f780a56e24
commit 206412267a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -36,7 +36,7 @@ offset
and "assets"."deletedAt" is null
and "assets"."id" < $6
order by
"assets"."id"
random()
limit
$7
)
@ -56,7 +56,7 @@ union all
and "assets"."deletedAt" is null
and "assets"."id" > $13
order by
"assets"."id"
random()
limit
$14
)