fix: standardize target path to always use 'contract' in migrateContractPaths function
This commit is contained in:
parent
feedeed80e
commit
eb99d54453
@ -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}`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user