From a36b7b87cf10e48abd57ddd221c0ac816e017a9e Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Tue, 30 Aug 2022 10:24:35 +0000 Subject: [PATCH] bug fixed --- .../polyglot/member/services/member.service.ts | 6 +----- src/app/shared/resolvers/member.resolver.ts | 12 ++++++++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/app/modules/polyglot/member/services/member.service.ts b/src/app/modules/polyglot/member/services/member.service.ts index 51508cb..43cc27c 100644 --- a/src/app/modules/polyglot/member/services/member.service.ts +++ b/src/app/modules/polyglot/member/services/member.service.ts @@ -48,12 +48,8 @@ export class MemberService { // @ Public methods // ----------------------------------------------------------------------------------------------------- - listMembers(req?: ListMembersRequest): Promise { + listMembers(req: ListMembersRequest): Promise { return new Promise((resolve, reject) => { - if (!req) { - req = new ListMembersRequest(); - } - if (!req.hasPagination()) { let paging = new Pagination(); paging.setPageSize(10); diff --git a/src/app/shared/resolvers/member.resolver.ts b/src/app/shared/resolvers/member.resolver.ts index c421ee1..6bea2f8 100644 --- a/src/app/shared/resolvers/member.resolver.ts +++ b/src/app/shared/resolvers/member.resolver.ts @@ -6,7 +6,10 @@ import { RouterStateSnapshot, } from '@angular/router'; import { MemberService } from 'app/modules/polyglot/member/services/member.service'; -import { ListMembersResponse } from 'app/modules/proto/c2se/member_pb'; +import { + ListMembersRequest, + ListMembersResponse, +} from 'app/modules/proto/c2se/member_pb'; import { GetMemberResponse } from 'app/modules/proto/c2se/member_pb'; import { Observable } from 'rxjs'; @@ -38,7 +41,12 @@ export class ListMemberResolver implements Resolve { | Observable | Promise | ListMembersResponse.Result { - return this._memberService.listMembers(); + let search = new ListMembersRequest.Search(); + search.setMemberClassId('4598f07a-86d1-42a4-b038-25706683a7cd'); + let req = new ListMembersRequest(); + req.setSearch(search); + + return this._memberService.listMembers(req); } }