mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 12:15:24 +02:00
fix: restore internal control columns and protect them from Dropbox sync overrides
This commit is contained in:
+2
-2
@@ -45,10 +45,10 @@ export default async function handler(req, res) {
|
||||
.from('products')
|
||||
.select('product_id, status');
|
||||
|
||||
// Protect products with status 'edited' or 'pending'
|
||||
// Protect ALL products that are not 'excel' status (i.e. they have manual edits or special status)
|
||||
const manuallyEditedIds = new Set(
|
||||
(existingProducts || [])
|
||||
.filter(p => p.status === 'edited' || p.status === 'pending')
|
||||
.filter(p => p.status && p.status !== 'excel')
|
||||
.map(p => p.product_id)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user