diff --git a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs index a4ffe7ee9a..288f480ed1 100644 --- a/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs +++ b/src/Umbraco.Infrastructure/Persistence/Repositories/Implement/KeyValueRepository.cs @@ -21,7 +21,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement { } /// - public IReadOnlyDictionary Find(string keyPrefix) + public IReadOnlyDictionary FindByKeyPrefix(string keyPrefix) => Get(Query().Where(entity => entity.Identifier.StartsWith(keyPrefix))) .ToDictionary(x => x.Identifier, x => x.Value); diff --git a/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs b/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs index 73bdbdc7e8..7fda83a427 100644 --- a/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs +++ b/src/Umbraco.Infrastructure/Services/Implement/KeyValueService.cs @@ -27,11 +27,11 @@ namespace Umbraco.Cms.Core.Services.Implement } /// - public IReadOnlyDictionary Find(string keyPrefix) + public IReadOnlyDictionary FindByKeyPrefix(string keyPrefix) { using (var scope = _scopeProvider.CreateScope(autoComplete: true)) { - return _repository.Find(keyPrefix); + return _repository.FindByKeyPrefix(keyPrefix); } }