cc-core-cli 1.0.84 → 1.0.85
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/package.json
CHANGED
|
@@ -424,7 +424,9 @@ export class CoreController {
|
|
|
424
424
|
|
|
425
425
|
@Basic()
|
|
426
426
|
@Patch("/:entity/import_validate")
|
|
427
|
-
async importValidate(@Param() params: any, @Body()
|
|
428
|
-
return this.service.importValidate(params.entity, data
|
|
427
|
+
async importValidate(@Param() params: any, @Body() body): Promise<boolean> {
|
|
428
|
+
return this.service.importValidate(params.entity, body.data,
|
|
429
|
+
body.original_data,
|
|
430
|
+
body.filename);
|
|
429
431
|
}
|
|
430
432
|
}
|
|
@@ -614,9 +614,14 @@ export class CoreService implements OnModuleInit {
|
|
|
614
614
|
return service.searchText(data);
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
public async importValidate(
|
|
617
|
+
public async importValidate(
|
|
618
|
+
entityName: string,
|
|
619
|
+
data: any,
|
|
620
|
+
originalData,
|
|
621
|
+
filename
|
|
622
|
+
): Promise<any> {
|
|
618
623
|
const service = await this._getService(entityName);
|
|
619
|
-
return service.importValidate(data);
|
|
624
|
+
return service.importValidate(data, originalData, filename);
|
|
620
625
|
}
|
|
621
626
|
}
|
|
622
627
|
|