From 059cb26b01b77f026a289965fbe8824fd11b5b82 Mon Sep 17 00:00:00 2001 From: "kihong.kim" Date: Sun, 1 Feb 2026 02:41:04 +0900 Subject: [PATCH] fix: use productUrl fallback for newly created media items --- backend/routes/photos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/routes/photos.js b/backend/routes/photos.js index 6494191..6b5e04c 100644 --- a/backend/routes/photos.js +++ b/backend/routes/photos.js @@ -202,7 +202,7 @@ router.post("/upload", upload.single("file"), async (req, res) => { // 4. Save metadata to local DB const photo = await Photo.create({ - url: `${mediaItem.baseUrl}=w2048-h1024`, // Store the Google Photos URL + url: `${mediaItem.baseUrl || mediaItem.productUrl}=w2048-h1024`, // Store the Google Photos URL caption: mediaItem.description || "", active: req.body.active !== "false", source: "google",