async addTimeOfDoneToRecord()

in src/Worker.ts [454:474]


  async addTimeOfDoneToRecord() {
    if (
      this.setting === undefined ||
      this.trelloAction.data.listAfter === undefined ||
      !this.setting.isAddDoneTime(this.trelloAction.data.listAfter.name)
    )
      // 設定がない or リストの移動でない or Doneへの移動でないなら何もせずreturn
      return "Skip addTimeOfDoneToRecord";

    const client = await this.kintoneClientCreator.createKintoneClient([
      this.apps.cards.token,
    ]);
    const recordId = await this.getCardRecordIdIfNotExistsCreateCard(client);
    const doneTime = this.trelloAction.date;
    return ApiExecutor.addTimeOfDoneToRecord(
      client,
      this.apps.cards.id,
      recordId,
      doneTime
    );
  }