Browse Source

test: error message correction

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

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

@ -326,7 +326,8 @@ export class DataTableService {
private async getColumn(param: { modelId: string; columnId: string }) { private async getColumn(param: { modelId: string; columnId: string }) {
const column = await Column.get({ colId: param.columnId }); const column = await Column.get({ colId: param.columnId });
if (!column) NcError.notFound(`Column '${param.columnId}' not found`); if (!column)
NcError.notFound(`Column with id '${param.columnId}' not found`);
if (column.fk_model_id !== param.modelId) if (column.fk_model_id !== param.modelId)
NcError.badRequest('Column not belong to model'); NcError.badRequest('Column not belong to model');

Loading…
Cancel
Save