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",