fix: restore internal control columns and protect them from Dropbox sync overrides

This commit is contained in:
Christian Vidal Wolf
2026-04-23 18:36:35 +02:00
parent 5112a27cda
commit e0508d50d6
3 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -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)
);