Skip to content

Commit a712186

Browse files
committed
Fixed references to underlying service
The references to the underlying service didn't match the signature of the wrapping methods. This yielded unwanted results (no surprise).
1 parent ec56af6 commit a712186

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Ignia.Topics/Mapping/CachedTopicMappingService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public object Map(Topic topic, Relationships relationships = Relationships.All)
8686
/*----------------------------------------------------------------------------------------------------------------------
8787
| Return cached result
8888
\---------------------------------------------------------------------------------------------------------------------*/
89-
return CacheViewModel(topic.ContentType, _topicMappingService.Map(topic), cacheKey);
89+
return CacheViewModel(topic.ContentType, _topicMappingService.Map(topic, relationships), cacheKey);
9090

9191
}
9292

@@ -121,7 +121,7 @@ public object Map(Topic topic, Relationships relationships = Relationships.All)
121121
/*----------------------------------------------------------------------------------------------------------------------
122122
| Return cached result
123123
\---------------------------------------------------------------------------------------------------------------------*/
124-
return (T)CacheViewModel(topic.ContentType, _topicMappingService.Map(topic), cacheKey);
124+
return CacheViewModel(topic.ContentType, _topicMappingService.Map<T>(topic, relationships), cacheKey) as T;
125125

126126
}
127127

@@ -150,7 +150,7 @@ public object Map(Topic topic, object target, Relationships relationships = Rela
150150
/*----------------------------------------------------------------------------------------------------------------------
151151
| Return cached result
152152
\---------------------------------------------------------------------------------------------------------------------*/
153-
return CacheViewModel(topic.ContentType, _topicMappingService.Map(topic), cacheKey);
153+
return CacheViewModel(topic.ContentType, _topicMappingService.Map(topic, relationships), cacheKey);
154154

155155
}
156156

0 commit comments

Comments
 (0)