mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
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:
parent
f780a56e24
commit
206412267a
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue