in src/Worker.ts [139:160]
async addRecordIdToCardNameOfTrello() {
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.addRecordIdToCardNameOfTrello(
this.trelloAction.data.card.id,
this.trelloCert.apiKey,
this.trelloCert.apiToken,
this.trelloAction.data.card.name,
cardRecordId,
this.setting.getPrefixRecordId()
);
}