Skip to content

Commit

Permalink
Setting Enabled to false when disabling a provider
Browse files Browse the repository at this point in the history
  • Loading branch information
cturnbull-bitwarden committed Apr 26, 2024
1 parent 3e3180c commit 08e8b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public async Task DisableAsync(Guid providerId)
return;
}

provider.Enabled = true;
provider.Enabled = false;

Check warning on line 675 in bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs#L674-L675

Added lines #L674 - L675 were not covered by tests
provider.RevisionDate = DateTime.UtcNow;

await _providerRepository.ReplaceAsync(provider);
Expand Down

0 comments on commit 08e8b91

Please sign in to comment.