1
0
mirror of https://github.com/bitwarden/server synced 2025-12-10 13:23:27 +00:00

Resolve the returned error message (#6414)

This commit is contained in:
cyprain-okeke
2025-10-07 11:49:00 +01:00
committed by GitHub
parent 4450d43c5b
commit b0cc2d23e2

View File

@@ -315,7 +315,7 @@ public class UpdateSecretsManagerSubscriptionCommand : IUpdateSecretsManagerSubs
throw new BadRequestException($"Cannot set max Secrets Manager seat autoscaling below current Secrets Manager seat count."); throw new BadRequestException($"Cannot set max Secrets Manager seat autoscaling below current Secrets Manager seat count.");
} }
if (plan.SecretsManager.MaxSeats.HasValue && update.MaxAutoscaleSmSeats.Value > plan.SecretsManager.MaxSeats) if (plan.SecretsManager.MaxSeats.HasValue && plan.SecretsManager.MaxSeats.Value > 0 && update.MaxAutoscaleSmSeats.Value > plan.SecretsManager.MaxSeats)
{ {
throw new BadRequestException(string.Concat( throw new BadRequestException(string.Concat(
$"Your plan has a Secrets Manager seat limit of {plan.SecretsManager.MaxSeats}, ", $"Your plan has a Secrets Manager seat limit of {plan.SecretsManager.MaxSeats}, ",