diff --git a/packages/nocodb/src/services/data-table.service.ts b/packages/nocodb/src/services/data-table.service.ts index 1010d6ffdf..118b5072f2 100644 --- a/packages/nocodb/src/services/data-table.service.ts +++ b/packages/nocodb/src/services/data-table.service.ts @@ -247,7 +247,7 @@ export class DataTableService { .join('___'); // if duplicate then throw error if (keys.has(pk)) { - NcError.unprocessableEntity('Duplicate row with id ' + pk); + NcError.unprocessableEntity('Duplicate record with id ' + pk); } if (pk === undefined || pk === null) { @@ -274,7 +274,7 @@ export class DataTableService { }); if (!(await baseModel.exist(param.rowId))) { - NcError.notFound(`Row with id '${param.rowId}' not found`); + NcError.notFound(`Record with id '${param.rowId}' not found`); } const column = await this.getColumn(param); diff --git a/packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts b/packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts index 530ee12988..72c28a336b 100644 --- a/packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/newDataApis.test.ts @@ -2262,7 +2262,7 @@ function linkBased() { ...validParams, urlParams: { ...validParams.urlParams, rowId: 9999 }, status: 404, - msg: "Row with id '9999' not found", + msg: "Record with id '9999' not found", }); // Body parameter error @@ -2334,7 +2334,7 @@ function linkBased() { ...validParams, urlParams: { ...validParams.urlParams, rowId: 9999 }, status: 404, - msg: "Row with id '9999' not found", + msg: "Record with id '9999' not found", }); // Body parameter error @@ -2406,7 +2406,7 @@ function linkBased() { ...validParams, urlParams: { ...validParams.urlParams, rowId: 9999 }, status: 404, - msg: "Row with id '9999' not found", + msg: "Record with id '9999' not found", }); // Query parameter error @@ -2432,7 +2432,9 @@ function linkBased() { // Link List: Invalid query parameter - offset > total records if (debugMode) - console.log('Link List: Invalid query parameter - offset > total records'); + console.log( + 'Link List: Invalid query parameter - offset > total records', + ); await ncAxiosLinkGet({ ...validParams, query: { ...validParams.query, offset: 9999 },