1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

Resolve Billing and Secrets Manager Code (#4645)

* Resolve Billing Warnings

* Resolve SM Warnings
This commit is contained in:
Justin Baur
2024-08-17 07:06:31 -04:00
committed by GitHub
parent abb223aabb
commit faa9afbe5e
6 changed files with 10 additions and 6 deletions

View File

@ -19,17 +19,20 @@ public class OrganizationController : Controller
private readonly ICurrentContext _currentContext;
private readonly IOrganizationRepository _organizationRepository;
private readonly IUpdateSecretsManagerSubscriptionCommand _updateSecretsManagerSubscriptionCommand;
private readonly ILogger<OrganizationController> _logger;
public OrganizationController(
IOrganizationService organizationService,
ICurrentContext currentContext,
IOrganizationRepository organizationRepository,
IUpdateSecretsManagerSubscriptionCommand updateSecretsManagerSubscriptionCommand)
IUpdateSecretsManagerSubscriptionCommand updateSecretsManagerSubscriptionCommand,
ILogger<OrganizationController> logger)
{
_organizationService = organizationService;
_currentContext = currentContext;
_organizationRepository = organizationRepository;
_updateSecretsManagerSubscriptionCommand = updateSecretsManagerSubscriptionCommand;
_logger = logger;
}
/// <summary>
@ -58,6 +61,7 @@ public class OrganizationController : Controller
}
catch (Exception ex)
{
_logger.LogError(ex, "Unhandled error while updating the subscription");
return StatusCode(500, new { Message = "An error occurred while updating the subscription." });
}
}