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

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

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

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

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

Loading…
Cancel
Save