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