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
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
)