Skip to content

Commit

Permalink
hotfix: bulkUpload preWriteCast only in case of sql storageType
Browse files Browse the repository at this point in the history
  • Loading branch information
coeit committed Jun 2, 2021
1 parent 3a8edc8 commit 8283418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/file-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ exports.parseCsvStream = async function(csvFilePath, model, delim, cols, storage
record = exports.replacePojoNullValueWithLiteralNull(record);
try {
await validatorUtil.validateData('validateForCreate', model, record);
record = model.preWriteCast(record);
if (storageType === "sql"){
record = model.preWriteCast(record);
await model.create(record, {
transaction: transaction
}).then(created => {
Expand Down

0 comments on commit 8283418

Please sign in to comment.