Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): failed to get albums with archived assets #15611

Merged
merged 4 commits into from
Jan 24, 2025

Conversation

alextran1502
Copy link
Contributor

Fixes #15607
Fixes #14681

@alextran1502 alextran1502 changed the title fix(mobile): failed to get albums with archived assets fix(server): failed to get albums with archived assets Jan 24, 2025
@alextran1502 alextran1502 enabled auto-merge (squash) January 24, 2025 17:40
@alextran1502 alextran1502 merged commit 9d8072b into main Jan 24, 2025
36 checks passed
@alextran1502 alextran1502 deleted the fix-album-not-fetched-on-mobile branch January 24, 2025 17:54
vladd11 pushed a commit to vladd11/immich that referenced this pull request Jan 25, 2025
)

* fix(mobile): failed to get albums with archived assets

* sql
@@ -63,7 +63,6 @@ const withAssets = (eb: ExpressionBuilder<DB, 'albums'>) => {
.innerJoin('albums_assets_assets', 'albums_assets_assets.assetsId', 'assets.id')
.whereRef('albums_assets_assets.albumsId', '=', 'albums.id')
.where('assets.deletedAt', 'is', null)
.where('assets.isArchived', '=', false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? Don't you want to exclude archived assets from the album view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Immich Albums not showing up in android app Mobile app can't sync album that is currently being appended to.
3 participants