Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 971a746

Browse files
Merge pull request #59 from topcoder-platform/develop
Resolve issue where data migration in prod failed
2 parents 3d93d2c + 007d1c8 commit 971a746

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/db/dumpDbToEs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ async function main () {
373373
data[i].created = new Date()
374374
}
375375
if (!_.isString(data[i].createdBy)) {
376-
data[i].createdBy = 'TonyJ'
376+
data[i].createdBy = 'tcAdmin'
377+
}
378+
if (!_.isString(data[i].updatedBy)) {
379+
data[i].updatedBy = 'tcAdmin'
377380
}
378381
await insertIntoES(key, data[i])
379382
}

0 commit comments

Comments
 (0)