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

Resolve issue where data migration in prod failed #59

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Resolve issue where data migration in prod failed
  • Loading branch information
callmekatootie committed Nov 2, 2020
commit 007d1c8c7b47633b3e97d0fe3ab359c89ea635fe
5 changes: 4 additions & 1 deletion scripts/db/dumpDbToEs.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ async function main () {
data[i].created = new Date()
}
if (!_.isString(data[i].createdBy)) {
data[i].createdBy = 'TonyJ'
data[i].createdBy = 'tcAdmin'
}
if (!_.isString(data[i].updatedBy)) {
data[i].updatedBy = 'tcAdmin'
}
await insertIntoES(key, data[i])
}
Expand Down