@@ -156,9 +156,8 @@ export class SlackCtrl {
const callBackId = payload?.view?.callback_id;
// register
- // response_urls is an array but the element included is only one.
if (callBackId === 'register') {
- await this.registerService.upsertOrderRecord(this.orderRepository, installation, payload);
+ await this.registerService.insertOrderRecord(this.orderRepository, installation, payload);
await this.registerService.notifyServerUriToSlack(authorizeResult, payload);
return;
}
@@ -43,7 +43,7 @@ export class RegisterService implements GrowiCommandProcessor {
});
- async upsertOrderRecord(
+ async insertOrderRecord(
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
orderRepository: OrderRepository, installation: Installation | undefined, payload: any,
): Promise<void> {