|
|
@ -63,7 +63,7 @@ export class DatasService { |
|
|
|
|
|
|
|
|
|
|
|
async dataInsert( |
|
|
|
async dataInsert( |
|
|
|
param: PathParams & { |
|
|
|
param: PathParams & { |
|
|
|
body: unknown; |
|
|
|
body: any; |
|
|
|
cookie: any; |
|
|
|
cookie: any; |
|
|
|
disableOptimization?: boolean; |
|
|
|
disableOptimization?: boolean; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -78,6 +78,10 @@ export class DatasService { |
|
|
|
dbDriver: await NcConnectionMgrv2.get(source), |
|
|
|
dbDriver: await NcConnectionMgrv2.get(source), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (param?.body?.Id) { |
|
|
|
|
|
|
|
delete param?.body?.Id |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return await baseModel.insert(param.body, null, param.cookie); |
|
|
|
return await baseModel.insert(param.body, null, param.cookie); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|