mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-10-02 10:45:30 +02:00
fix: restore internal control columns and protect them from Dropbox sync overrides
This commit is contained in:
1 parent
5112a27cda
commit
e0508d50d6
3 files changed
+11
-14
No files matched your search
+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