From ef3ce79c5b57442871ba6a6f11a013e3a978f8e1 Mon Sep 17 00:00:00 2001 From: Varun Raj Date: Fri, 10 Jul 2026 15:55:41 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20drop=20asset.deviceId=20from=20raw=20SQL?= =?UTF-8?q?=20select=20=E2=80=94=20column=20removed=20in=20Immich=20v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/pages/api/albums/potential-trip-assets.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/api/albums/potential-trip-assets.ts b/src/pages/api/albums/potential-trip-assets.ts index ec6bd9e..c7bf238 100644 --- a/src/pages/api/albums/potential-trip-assets.ts +++ b/src/pages/api/albums/potential-trip-assets.ts @@ -24,7 +24,6 @@ const SELECT_ORPHAN_RANGE = ( SELECT a."id", a."ownerId", - a."deviceId", a."type", a."originalPath", a."isFavorite",