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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user