Browse Source

refactor(nocodb): move PagedResponseImpl to ctl

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
6fcbcaba5a
  1. 7
      packages/nocodb/src/lib/services/orgUser.svc.ts

7
packages/nocodb/src/lib/services/orgUser.svc.ts

@ -14,7 +14,6 @@ import Noco from '../Noco';
import { MetaTable } from '../utils/globals';
import { NcError } from '../meta/helpers/catchError';
import { extractProps } from '../meta/helpers/extractProps';
import { PagedResponseImpl } from '../meta/helpers/PagedResponse';
import { randomTokenString } from '../meta/helpers/stringHelpers';
import { sendInviteEmail } from './projectUser.svc';
import type { UserType } from 'nocodb-sdk';
@ -23,12 +22,6 @@ export async function userList(param: {
// todo: add better typing
query: Record<string, any>;
}) {
const { query = {} } = param;
return new PagedResponseImpl(await User.list(query), {
...query,
count: await User.count(query),
});
}
export async function userUpdate(param: {

Loading…
Cancel
Save