1
0
mirror of https://github.com/bitwarden/server synced 2025-12-18 01:03:17 +00:00

[AC-2420] Fix customer discount ID and SM invite validation (#3966)

* Fix customer discount ID and SM update validation

* Replace constructor needed for autofixture
This commit is contained in:
Alex Morask
2024-04-18 11:11:37 -04:00
committed by GitHub
parent 49ed5af517
commit 9827ee5f6a
5 changed files with 17 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ public class UpdateSecretsManagerSubscriptionCommand : IUpdateSecretsManagerSubs
public async Task UpdateSubscriptionAsync(SecretsManagerSubscriptionUpdate update)
{
await ValidateUpdate(update);
await ValidateUpdateAsync(update);
await FinalizeSubscriptionAdjustmentAsync(update);
@@ -123,7 +123,7 @@ public class UpdateSecretsManagerSubscriptionCommand : IUpdateSecretsManagerSubs
}
public async Task ValidateUpdate(SecretsManagerSubscriptionUpdate update)
private async Task ValidateUpdateAsync(SecretsManagerSubscriptionUpdate update)
{
if (_globalSettings.SelfHosted)
{