fix: standardize target path to always use 'contract' in migrateContractPaths function

This commit is contained in:
seaznCode 2026-02-04 12:18:56 +01:00
parent feedeed80e
commit eb99d54453

View File

@ -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}`);