mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 08:32:50 -05:00
Establish IFeatureService as scoped (#3679)
* Establish IFeatureService as scoped * Lint * Feedback around injection
This commit is contained in:
@ -73,7 +73,7 @@ public class CollectController : Controller
|
||||
}
|
||||
else
|
||||
{
|
||||
var useFlexibleCollections = _featureService.IsEnabled(FeatureFlagKeys.FlexibleCollections, _currentContext);
|
||||
var useFlexibleCollections = _featureService.IsEnabled(FeatureFlagKeys.FlexibleCollections);
|
||||
cipher = await _cipherRepository.GetByIdAsync(eventModel.CipherId.Value,
|
||||
_currentContext.UserId.Value,
|
||||
useFlexibleCollections);
|
||||
|
@ -70,7 +70,7 @@ public class Startup
|
||||
services.AddSingleton<IEventWriteService, RepositoryEventWriteService>();
|
||||
}
|
||||
|
||||
services.AddSingleton<IFeatureService, LaunchDarklyFeatureService>();
|
||||
services.AddOptionality();
|
||||
|
||||
// Mvc
|
||||
services.AddMvc(config =>
|
||||
|
Reference in New Issue
Block a user