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 prefix = match[1];
|
||||||
const filename = match[3];
|
const filename = match[3];
|
||||||
const targetType = (row.contract_type || '').toString().toLowerCase() === 'gdpr'
|
const nextKey = `${prefix}/contract/${filename}`;
|
||||||
? 'gdpr'
|
|
||||||
: 'contract';
|
|
||||||
const nextKey = `${prefix}/${targetType}/${filename}`;
|
|
||||||
|
|
||||||
if (DRY_RUN) {
|
if (DRY_RUN) {
|
||||||
console.log(`DRY_RUN: ${row.id} ${key} -> ${nextKey}`);
|
console.log(`DRY_RUN: ${row.id} ${key} -> ${nextKey}`);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user