mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor: activity queries (#15207)
This commit is contained in:
parent
1fb2b3f899
commit
7d50d3032b
2 changed files with 3 additions and 4 deletions
|
|
@ -31,11 +31,11 @@ select
|
|||
count(*) as "count"
|
||||
from
|
||||
"activity"
|
||||
left join "users" on "users"."id" = "activity"."userId"
|
||||
inner join "users" on "users"."id" = "activity"."userId"
|
||||
and "users"."deletedAt" is null
|
||||
left join "assets" on "assets"."id" = "activity"."assetId"
|
||||
where
|
||||
"activity"."assetId" = $1
|
||||
and "activity"."albumId" = $2
|
||||
and "activity"."isLiked" = $3
|
||||
and "users"."deletedAt" is null
|
||||
and "assets"."deletedAt" is null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue