Browse Source

chore(nocodb): lint

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

11
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, {
id: param.rowId, colId: column.id,
}, param.query); id: param.rowId,
},
param.query,
);
return new PagedResponseImpl(data, { return new PagedResponseImpl(data, {
count, count,

11
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, {
id: param.rowId, colId: column.id,
}, param.query)) as number; id: param.rowId,
},
param.query,
)) as number;
} else { } else {
data = await baseModel.btRead( data = await baseModel.btRead(
{ {

11
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, {
id: param.rowId, colId: param.colId,
}, param.query); id: param.rowId,
},
param.query,
);
return new PagedResponseImpl(data, { return new PagedResponseImpl(data, {
totalRows: count, totalRows: count,

Loading…
Cancel
Save