Browse Source

test: error message correction (2)

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5747/head
Raju Udava 1 year ago
parent
commit
3f5066a457
  1. 4
      packages/nocodb/src/db/BaseModelSqlv2.ts
  2. 4
      packages/nocodb/src/services/data-table.service.ts

4
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -3636,7 +3636,7 @@ class BaseModelSqlv2 {
// validate rowId // validate rowId
if (!row) { if (!row) {
NcError.notFound(`Row '${rowId}' not found`); NcError.notFound(`Row with id '${rowId}' not found`);
} }
const colOptions = await column.getColOptions<LinkToAnotherRecordColumn>(); const colOptions = await column.getColOptions<LinkToAnotherRecordColumn>();
@ -3859,7 +3859,7 @@ class BaseModelSqlv2 {
// validate rowId // validate rowId
if (!row) { if (!row) {
NcError.notFound(`Row '${rowId}' not found`); NcError.notFound(`Row with id '${rowId}' not found`);
} }
const colOptions = await column.getColOptions<LinkToAnotherRecordColumn>(); const colOptions = await column.getColOptions<LinkToAnotherRecordColumn>();

4
packages/nocodb/src/services/data-table.service.ts

@ -180,7 +180,7 @@ export class DataTableService {
if (param.viewId) { if (param.viewId) {
view = await View.get(param.viewId); view = await View.get(param.viewId);
if (!view || (view.fk_model_id && view.fk_model_id !== param.modelId)) { if (!view || (view.fk_model_id && view.fk_model_id !== param.modelId)) {
NcError.unprocessableEntity(`View '${param.viewId}' not found`); NcError.unprocessableEntity(`View with id '${param.viewId}' not found`);
} }
} }
@ -254,7 +254,7 @@ export class DataTableService {
}); });
if (!(await baseModel.exist(param.rowId))) { if (!(await baseModel.exist(param.rowId))) {
NcError.notFound(`Row '${param.rowId}' not found`); NcError.notFound(`Row with id '${param.rowId}' not found`);
} }
const column = await this.getColumn(param); const column = await this.getColumn(param);

Loading…
Cancel
Save