async removeMemberFromCard()

in src/Worker.ts [418:439]


  async removeMemberFromCard() {
    const client = await this.kintoneClientCreator.createKintoneClient([
      this.apps.members.token,
      this.apps.cards.token,
    ]);
    const recordId = await this.getCardRecordIdIfNotExistsCreateCard(client);
    const kintoneUserCode = await this.getKintoneUserCodeIfNotExistsAddMember(
      client
    );
    const kintoneUserCodesOfSetted = await ApiExecutor.getKintoneUserCodesOfSetted(
      client,
      this.apps.cards.id,
      this.trelloAction.data
    );
    return ApiExecutor.removeMemberFromCard(
      client,
      this.apps.cards.id,
      recordId as string,
      kintoneUserCode,
      kintoneUserCodesOfSetted
    );
  }