Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 30 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ shamefullyHoist: false
verifyDepsBeforeRun: install
minimumReleaseAgeExclude:
- '@immich/ui'
- '@immich/sql-tools@0.7.0'
- '@immich/sql-tools@0.8.0'
- '@nestjs/cli@12.0.1'
- '@futo-org/*'
- '@immich/nestjs-standard-schema@0.1.0'
Expand Down
4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@immich/native-core": "workspace:*",
"@immich/nestjs-standard-schema": "^0.1.0",
"@immich/plugin-sdk": "workspace:*",
"@immich/sql-tools": "^0.7.0",
"@immich/sql-tools": "^0.8.0",
"@immich/walkrs": "0.0.17",
"@nestjs/bullmq": "^12.0.0",
"@nestjs/common": "^12.0.0",
Expand Down Expand Up @@ -102,7 +102,7 @@
"nodemailer": "^10.0.0",
"openid-client": "^6.3.3",
"pg": "^8.11.3",
"postgres": "3.4.9",
"postgres": "^4.0.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-email": "^6.0.0",
Expand Down
6 changes: 3 additions & 3 deletions server/src/queries/asset.job.repository.sql
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ from
where
"stack_asset"."stackId" = "stack"."id"
and "stack_asset"."id" != "stack"."primaryAssetId"
and "stack_asset"."visibility" = $1
and "stack_asset"."status" != $2
and "stack_asset"."visibility" = 'timeline'
and "stack_asset"."status" != 'deleted'
) as agg
) as "assets"
from
Expand All @@ -689,7 +689,7 @@ from
"stack"."id" = "asset"."stackId"
) as "stack_result" on true
where
"asset"."id" = $3
"asset"."id" = $1

-- AssetJobRepository.streamForVideoConversion
select
Expand Down
4 changes: 2 additions & 2 deletions server/src/queries/library.repository.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ select
and "asset"."visibility" != $4
)
) as "videos",
coalesce(sum("asset_exif"."fileSizeInByte"), $5) as "usage"
coalesce(sum("asset_exif"."fileSizeInByte"), 0) as "usage"
from
"library"
inner join "asset" on "asset"."libraryId" = "library"."id"
left join "asset_exif" on "asset_exif"."assetId" = "asset"."id"
where
"asset"."deletedAt" is null
and "library"."id" = $6
and "library"."id" = $5
group by
"library"."id"
select
Expand Down
32 changes: 16 additions & 16 deletions server/src/queries/memory.repository.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ select
and "asset"."deletedAt" is null
and not exists (
select
$1 as "one"
1 as "one"
from
"asset_face"
inner join "person" on "person"."personGroupId" = "asset_face"."personGroupId"
and "person"."ownerId" = "asset"."ownerId"
where
"asset_face"."assetId" = "asset"."id"
and "person"."isHidden" = $2
and "person"."isHidden" = $1
)
order by
"asset"."fileCreatedAt" asc
Expand All @@ -62,7 +62,7 @@ from
"memory"
where
"deletedAt" is null
and "ownerId" = $3
and "ownerId" = $2
order by
"showAt" desc nulls last,
"memoryAt" desc
Expand All @@ -85,14 +85,14 @@ select
and "asset"."deletedAt" is null
and not exists (
select
$1 as "one"
1 as "one"
from
"asset_face"
inner join "person" on "person"."personGroupId" = "asset_face"."personGroupId"
and "person"."ownerId" = "asset"."ownerId"
where
"asset_face"."assetId" = "asset"."id"
and "person"."isHidden" = $2
and "person"."isHidden" = $1
)
order by
"asset"."fileCreatedAt" asc
Expand All @@ -104,14 +104,14 @@ from
where
(
"showAt" is null
or "showAt" <= $3
or "showAt" <= $2
)
and (
"hideAt" is null
or "hideAt" >= $4
or "hideAt" >= $3
)
and "deletedAt" is null
and "ownerId" = $5
and "ownerId" = $4
order by
"showAt" desc nulls last,
"memoryAt" desc
Expand All @@ -134,14 +134,14 @@ select
and "asset"."deletedAt" is null
and not exists (
select
$1 as "one"
1 as "one"
from
"asset_face"
inner join "person" on "person"."personGroupId" = "asset_face"."personGroupId"
and "person"."ownerId" = "asset"."ownerId"
where
"asset_face"."assetId" = "asset"."id"
and "person"."isHidden" = $2
and "person"."isHidden" = $1
)
order by
"asset"."fileCreatedAt" asc
Expand All @@ -151,9 +151,9 @@ select
from
"memory"
where
"showAt" > $3
"showAt" > $2
and "deletedAt" is null
and "ownerId" = $4
and "ownerId" = $3
order by
"showAt" desc nulls last,
"memoryAt" desc
Expand All @@ -176,14 +176,14 @@ select
and "asset"."deletedAt" is null
and not exists (
select
$1 as "one"
1 as "one"
from
"asset_face"
inner join "person" on "person"."personGroupId" = "asset_face"."personGroupId"
and "person"."ownerId" = "asset"."ownerId"
where
"asset_face"."assetId" = "asset"."id"
and "person"."isHidden" = $2
and "person"."isHidden" = $1
)
order by
"asset"."fileCreatedAt" asc
Expand All @@ -195,10 +195,10 @@ from
where
(
"showAt" is null
or "showAt" <= $3
or "showAt" <= $2
)
and "deletedAt" is null
and "ownerId" = $4
and "ownerId" = $3
order by
"showAt" desc nulls last,
"memoryAt" desc
Expand Down
Loading
Loading