From ab8ed85c8456d705c02d2dd32d15acb674a71fb7 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Wed, 6 May 2026 11:31:48 +0200 Subject: [PATCH] feat: add photos route with sitemap indexing and status endpoints --- src/routes/photos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/photos.js b/src/routes/photos.js index c668299..d4b04c9 100644 --- a/src/routes/photos.js +++ b/src/routes/photos.js @@ -36,7 +36,7 @@ async function indexSitemaps(pool) { const values = batch.map((r, j) => `($${j * 2 + 1}, $${j * 2 + 2})`).join(', '); const params = batch.flatMap(r => [r.code, r.url]); await pool.query( - `INSERT INTO ff_photo_index (photo_code, product_url, indexed_at) + `INSERT INTO ff_photo_index (photo_code, product_url) VALUES ${values} ON CONFLICT (photo_code) DO UPDATE SET product_url = EXCLUDED.product_url, indexed_at = NOW()`,