@punks/backend-entity-manager 0.0.445 → 0.0.446
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js
CHANGED
|
@@ -1020,13 +1020,15 @@ class EntitiesParseCommand {
|
|
|
1020
1020
|
contentType: input.file.contentType,
|
|
1021
1021
|
fileName: input.file.fileName,
|
|
1022
1022
|
});
|
|
1023
|
-
const entries = await this.parseImportFile(input.file.content, input.format);
|
|
1023
|
+
const entries = await this.parseImportFile(input.file.content, input.format, input?.payload);
|
|
1024
1024
|
return {
|
|
1025
1025
|
entries,
|
|
1026
1026
|
};
|
|
1027
1027
|
}
|
|
1028
|
-
async parseImportFile(content, format) {
|
|
1029
|
-
return await this.services
|
|
1028
|
+
async parseImportFile(content, format, payload) {
|
|
1029
|
+
return await this.services
|
|
1030
|
+
.resolveSerializer()
|
|
1031
|
+
.parse(content, format, payload);
|
|
1030
1032
|
}
|
|
1031
1033
|
async uploadImportFile(file) {
|
|
1032
1034
|
await this.bucket.fileUpload({
|