From eb99d5445381938cad6b00898476bfedc9285af0 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Wed, 4 Feb 2026 12:18:56 +0100 Subject: [PATCH] fix: standardize target path to always use 'contract' in migrateContractPaths function --- scripts/migrateContractPaths.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/migrateContractPaths.js b/scripts/migrateContractPaths.js index 60b0118..3d5f6ff 100644 --- a/scripts/migrateContractPaths.js +++ b/scripts/migrateContractPaths.js @@ -32,10 +32,7 @@ async function migrate() { const prefix = match[1]; const filename = match[3]; - const targetType = (row.contract_type || '').toString().toLowerCase() === 'gdpr' - ? 'gdpr' - : 'contract'; - const nextKey = `${prefix}/${targetType}/${filename}`; + const nextKey = `${prefix}/contract/${filename}`; if (DRY_RUN) { console.log(`DRY_RUN: ${row.id} ${key} -> ${nextKey}`);