Browse Source

chore(nocodb): lint

pull/6447/head
wkw 1 year ago
parent
commit
d89fd75e74
  1. 7
      packages/nocodb/src/services/data-alias-nested.service.ts
  2. 7
      packages/nocodb/src/services/data-table.service.ts
  3. 7
      packages/nocodb/src/services/datas.service.ts

7
packages/nocodb/src/services/data-alias-nested.service.ts

@ -220,10 +220,13 @@ export class DataAliasNestedService {
param.query, param.query,
); );
const count = await baseModel.hmListCount({ const count = await baseModel.hmListCount(
{
colId: column.id, colId: column.id,
id: param.rowId, id: param.rowId,
}, param.query); },
param.query,
);
return new PagedResponseImpl(data, { return new PagedResponseImpl(data, {
count, count,

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

@ -302,10 +302,13 @@ export class DataTableService {
}, },
listArgs as any, listArgs as any,
); );
count = (await baseModel.hmListCount({ count = (await baseModel.hmListCount(
{
colId: column.id, colId: column.id,
id: param.rowId, id: param.rowId,
}, param.query)) as number; },
param.query,
)) as number;
} else { } else {
data = await baseModel.btRead( data = await baseModel.btRead(
{ {

7
packages/nocodb/src/services/datas.service.ts

@ -650,10 +650,13 @@ export class DatasService {
) )
)?.[key]; )?.[key];
const count = await baseModel.hmListCount({ const count = await baseModel.hmListCount(
{
colId: param.colId, colId: param.colId,
id: param.rowId, id: param.rowId,
}, param.query); },
param.query,
);
return new PagedResponseImpl(data, { return new PagedResponseImpl(data, {
totalRows: count, totalRows: count,

Loading…
Cancel
Save