Skip to content

Commit

Permalink
Fix eagerly executed task in CustomSettingService
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros committed May 2, 2024
1 parent c967b5d commit 65e2176
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public CustomSettingsService(
_httpContextAccessor = httpContextAccessor;
_authorizationService = authorizationService;
_contentDefinitionManager = contentDefinitionManager;
_settingsTypes = new Lazy<Task<IDictionary<string, ContentTypeDefinition>>>(GetContentTypeAsync());
_settingsTypes = new Lazy<Task<IDictionary<string, ContentTypeDefinition>>>(GetContentTypeAsync);
}

public async Task<IEnumerable<string>> GetAllSettingsTypeNamesAsync()
Expand Down

0 comments on commit 65e2176

Please sign in to comment.