This repository was archived by the owner on Aug 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " ts-angular-jsonapi" ,
3- "version" : " 0.6.16 " ,
3+ "version" : " 0.6.19 " ,
44 "description" : " JSONAPI library developed for AngularJS in Typescript" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -57,14 +57,14 @@ export class Core implements ICore {
5757 angular . forEach ( resource . relationships , ( relationship , alias ) => {
5858 if ( 'id' in relationship . data ) {
5959 // relation hasOne
60- if ( alias in relations_alias_to_duplicate_too ) {
60+ if ( relations_alias_to_duplicate_too . indexOf ( alias ) > - 1 ) {
6161 newresource . addRelationship ( this . duplicateResource ( < IResource > relationship . data ) , alias ) ;
6262 } else {
6363 newresource . addRelationship ( < IResource > relationship . data , alias ) ;
6464 }
6565 } else {
6666 // relation hasMany
67- if ( alias in relations_alias_to_duplicate_too ) {
67+ if ( relations_alias_to_duplicate_too . indexOf ( alias ) > - 1 ) {
6868 angular . forEach ( relationship . data , relationresource => {
6969 newresource . addRelationship ( this . duplicateResource ( relationresource ) , alias ) ;
7070 } ) ;
You can’t perform that action at this time.
0 commit comments