fix: drop asset.deviceId from raw SQL select — column removed in Immich v3

Immich v3 dropped asset.deviceId/deviceAssetId (af4cfce on main).
This branch predates that migration, so its own SELECT_ORPHAN_RANGE
query still referenced the column, which would 500 on any current
Immich v3 instance. Match the field list already used by the sibling
potential-albums-assets.ts endpoint, which was updated for v3.
This commit is contained in:
Varun Raj committed 2026-07-10 15:55:41 +00:00
1 parent a9d2adc6a1
commit ef3ce79c5b
1 file changed
-1
@@ -24,7 +24,6 @@ const SELECT_ORPHAN_RANGE = (
SELECT
a."id",
a."ownerId",
a."deviceId",
a."type",
a."originalPath",
a."isFavorite",