Skip to content

Commit 7124243

Browse files
committed
Fixes a query that would cause the new petapoco changes to have issues since it was asking for the wrong type
1 parent 4ee4f29 commit 7124243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UmbracoExamine/DataServices/UmbracoContentService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public IEnumerable<string> GetAllUserPropertyNames()
123123
{
124124
try
125125
{
126-
var result = _applicationContext.DatabaseContext.Database.Fetch<PropertyAliasDto>("select distinct alias from cmsPropertyType order by alias");
127-
return result.Select(r => r.Alias).ToList();
126+
var result = _applicationContext.DatabaseContext.Database.Fetch<string>("select distinct alias from cmsPropertyType order by alias");
127+
return result;
128128
}
129129
catch (Exception ex)
130130
{

0 commit comments

Comments
 (0)