|
|
@ -103,11 +103,15 @@ export class DatasService { |
|
|
|
dbDriver: await NcConnectionMgrv2.get(base), |
|
|
|
dbDriver: await NcConnectionMgrv2.get(base), |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if xcdb project skip checking for LTAR
|
|
|
|
|
|
|
|
if (!base.is_meta) { |
|
|
|
// todo: Should have error http status code
|
|
|
|
// todo: Should have error http status code
|
|
|
|
const message = await baseModel.hasLTARData(param.rowId, model); |
|
|
|
const message = await baseModel.hasLTARData(param.rowId, model); |
|
|
|
if (message.length) { |
|
|
|
if (message.length) { |
|
|
|
return { message }; |
|
|
|
return { message }; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return await baseModel.delByPk(param.rowId, null, param.cookie); |
|
|
|
return await baseModel.delByPk(param.rowId, null, param.cookie); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|