From 436fe29bf81b0b70251dd1f76f34008c59bee81c Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 11 Jun 2021 11:14:43 -0600 Subject: [PATCH] fixing build --- .../Persistence/Repositories/Implement/KeyValueRepository.cs | 2 +- .../Services/Implement/KeyValueService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); } }