Browse Source

chore: rollback to previous code

pull/2608/head
Wing-Kam Wong 2 years ago
parent
commit
7f97f357c4
  1. 3
      packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts

3
packages/nocodb/src/lib/meta/api/dataApis/dataAliasApis.ts

@ -76,11 +76,10 @@ async function dataUpdate(req: Request, res: Response) {
async function dataDelete(req: Request, res: Response) {
const { model, view } = await getViewAndModelFromRequestByAliasOrId(req);
const base = await Base.get(model.base_id);
const dbDriver = NcConnectionMgrv2.get(base);
const baseModel = await Model.getBaseModelSQL({
id: model.id,
viewId: view?.id,
dbDriver: dbDriver,
dbDriver: NcConnectionMgrv2.get(base),
});
const message = await baseModel.hasLTARData(req.params.rowId, model);
if (message.length) {

Loading…
Cancel
Save