Skip to content

Commit

Permalink
fix(server): Update map.repository.ts - count assets only once
Browse files Browse the repository at this point in the history
updated fix for immich-app#16129
  • Loading branch information
jbcodemonkey authored Feb 20, 2025
1 parent 34b88bb commit 80df424
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/src/repositories/map.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export class MapRepository {
.on('exif.longitude', 'is not', null),
)
.select(['id', 'exif.latitude as lat', 'exif.longitude as lon', 'exif.city', 'exif.state', 'exif.country'])
.leftJoin('albums_assets_assets', (join) => join.onRef('assets.id', '=', 'albums_assets_assets.assetsId'))
.where('isVisible', '=', true)
.$if(isArchived !== undefined, (q) => q.where('isArchived', '=', isArchived!))
.$if(isFavorite !== undefined, (q) => q.where('isFavorite', '=', isFavorite!))
Expand Down

0 comments on commit 80df424

Please sign in to comment.