yohei0125 4 лет назад
Родитель
Сommit
bef5331320
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      packages/app/src/server/service/import.js

+ 2 - 0
packages/app/src/server/service/import.js

@@ -22,6 +22,7 @@ const CollectionProgressingStatus = require('../models/vo/collection-progressing
 
 const BULK_IMPORT_SIZE = 100;
 
+
 class ImportSettings {
 
   constructor(mode) {
@@ -473,6 +474,7 @@ class ImportService {
     Object.entries(overwriteParams).forEach(([propertyName, overwriteValue]) => {
       const value = document[propertyName];
 
+      // distinguish between null and undefined
       if (value !== undefined) {
         const overwriteFunc = (typeof overwriteValue === 'function') ? overwriteValue : null;
         _document[propertyName] = (overwriteFunc != null) ? overwriteFunc(value, { document: _document, propertyName, schema }) : overwriteValue;