async registerRecordIdToTrello()

in src/Worker.ts [115:137]


  async registerRecordIdToTrello() {
    const client = await this.kintoneClientCreator.createKintoneClient([
      this.apps.cards.token,
    ]);
    const cardRecordId = await this.getCardRecordIdIfNotExistsCreateCard(
      client
    );
    if (cardRecordId === undefined) {
      throw new Error("Not exists Card");
    }
    if (this.setting === undefined) {
      throw new Error("Need setting");
    }
    return ApiExecutor.registerRecordIdToTrello(
      this.trelloAction.data.card.id,
      this.apps.baseUrl,
      this.apps.cards.id,
      this.trelloCert.apiKey,
      this.trelloCert.apiToken,
      cardRecordId,
      this.setting.getPrefixRecordId()
    );
  }