cc-core-cli 1.0.74 → 1.0.75
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
|
@@ -245,7 +245,14 @@ export class CoreController {
|
|
|
245
245
|
@Basic()
|
|
246
246
|
@Put("/:entity/:id")
|
|
247
247
|
async update(@Param() params: any, @Body() data: any): Promise<any> {
|
|
248
|
-
|
|
248
|
+
if (
|
|
249
|
+
!["mail_setting"].includes(params.entity) &&
|
|
250
|
+
params.entity.indexOf("_setting") !== -1
|
|
251
|
+
) {
|
|
252
|
+
return this.serviceSetting.setSetting(params.entity, data, params.id);
|
|
253
|
+
} else {
|
|
254
|
+
return this.service.update(params.entity, params.id, data);
|
|
255
|
+
}
|
|
249
256
|
}
|
|
250
257
|
|
|
251
258
|
@Basic()
|