Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/v1/controller/user/binding/List.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export class BindingList extends AbstractController<RequestType, ResponseType> {
public async execute(): Promise<Response<ResponseType>> {
const result = { meta: {} } as ResponseType;

this.svc[LoginPlatform.WeChat].name();

await Promise.all([
this.listWeChat(result),
this.listPhone(result),
Expand Down Expand Up @@ -68,9 +66,9 @@ export class BindingList extends AbstractController<RequestType, ResponseType> {
}

private async listApple(result: ResponseType): Promise<void> {
const agora = await this.svc[LoginPlatform.Apple].name();
result.agora = agora !== null;
result.meta.agora = agora || "";
const apple = await this.svc[LoginPlatform.Apple].name();
result.apple = apple !== null;
result.meta.apple = apple || "";
}

private async listGithub(result: ResponseType): Promise<void> {
Expand Down