mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-10-02 13:15:29 +02:00
Fix data overwrite on reload by ignoring duplicates in dropbox-sync
This commit is contained in:
1 parent
7a5e1a1b26
commit
8849303f58
1 file changed
+1
-1
+1
-1
@@ -39,7 +39,7 @@ export default async function handler(req, res) {
|
||||
.from('products')
|
||||
.upsert(productsToUpsert, {
|
||||
onConflict: 'product_id',
|
||||
ignoreDuplicates: false
|
||||
ignoreDuplicates: true
|
||||
});
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in new issue
Block a user