mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03: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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user