diff --git a/dictation_server/src/repositories/accounts/accounts.repository.service.ts b/dictation_server/src/repositories/accounts/accounts.repository.service.ts index 67437e2..77a66d6 100644 --- a/dictation_server/src/repositories/accounts/accounts.repository.service.ts +++ b/dictation_server/src/repositories/accounts/accounts.repository.service.ts @@ -237,7 +237,7 @@ export class AccountsRepositoryService { }); // 未発行状態あるいは発行キャンセルされた注文数を取得する - const issueRequesting = await licenseOrder.count({ + const numberOfRequesting = await licenseOrder.count({ where: { from_account_id: id, status: LICENSE_STATUS_ISSUE_REQUESTING, @@ -253,7 +253,7 @@ export class AccountsRepositoryService { status: LICENSE_STATUS_ISSUE_REQUESTING, }) .getRawOne(); - const numberOfRequesting = parseInt(result.sum, 10) || 0; + const issueRequesting = parseInt(result.sum, 10) || 0; // 有効期限がしきい値より未来または未設定で、割り当て可能なライセンス数の取得を行う const allocatableLicenseWithMargin = await license.count({