Fix data overwrite on reload by ignoring duplicates in dropbox-sync

This commit is contained in:
Christian Vidal Wolf
2026-04-10 12:28:48 +02:00
parent 7a5e1a1b26
commit 8849303f58
+1 -1
View File
@@ -39,7 +39,7 @@ export default async function handler(req, res) {
.from('products') .from('products')
.upsert(productsToUpsert, { .upsert(productsToUpsert, {
onConflict: 'product_id', onConflict: 'product_id',
ignoreDuplicates: false ignoreDuplicates: true
}); });
if (error) { if (error) {