feat: change fetchAllUsersV2 to fetchAllUsers
This commit is contained in:
committed by
Andrew Bastin
parent
abaddd94a5
commit
9ceef43c74
@@ -45,28 +45,17 @@ export class AdminService {
|
||||
private readonly configService: ConfigService,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Fetch all the users in the infra.
|
||||
* @param cursorID Users uid
|
||||
* @param take number of users to fetch
|
||||
* @returns an Either of array of user or error
|
||||
*/
|
||||
async fetchUsers(cursorID: string, take: number) {
|
||||
const allUsers = await this.userService.fetchAllUsers(cursorID, take);
|
||||
return allUsers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch all the users in the infra.
|
||||
* @param searchString search on users displayName or email
|
||||
* @param paginationOption pagination options
|
||||
* @returns an Either of array of user or error
|
||||
*/
|
||||
async fetchUsersV2(
|
||||
async fetchUsers(
|
||||
searchString: string,
|
||||
paginationOption: OffsetPaginationArgs,
|
||||
) {
|
||||
const allUsers = await this.userService.fetchAllUsersV2(
|
||||
const allUsers = await this.userService.fetchAllUsers(
|
||||
searchString,
|
||||
paginationOption,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user