fix links for relationships

This commit is contained in:
Art Lowel
2020-01-23 14:24:13 +01:00
parent 1d31cae970
commit b2f966eb83
14 changed files with 50 additions and 28 deletions

View File

@@ -227,9 +227,7 @@ export class RemoteDataBuildService {
const domainModelConstructor = getMapsTo(normalized.constructor);
const domainModel = Object.assign(new domainModelConstructor(), normalized, halLinks);
linksToFollow.forEach((linkToFollow: FollowLinkConfig<T>) => {
this.linkService.resolveLink(domainModel, linkToFollow);
});
this.linkService.resolveLinks(domainModel, ...linksToFollow);
return domainModel;
}