This repository was archived by the owner on Aug 18, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class MemoryCache implements ICache {
5555 resource . id = id ;
5656
5757 if ( id && use_store ) {
58+ console . log ( 'pido al store' ) ;
5859 Converter . getService ( type ) . memorycache . getResourceFromStore ( resource ) ;
5960 }
6061
@@ -100,6 +101,7 @@ export class MemoryCache implements ICache {
100101 promise . then (
101102 success => {
102103 if ( success ) {
104+ console . log ( 'recibí del store, actualizo' ) ;
103105 Converter . build ( { data : success } , resource ) ;
104106 }
105107 }
Original file line number Diff line number Diff line change @@ -112,7 +112,8 @@ export class ResourceRelationshipsConverter {
112112
113113 // trae datos o cambió resource? actualizamos!
114114 if (
115- 'attributes' in relation_data_from . data ||
115+ // 'attributes' in relation_data_from.data || // ???
116+ ! ( < IResource > this . relationships_dest [ relation_data_key ] . data ) . attributes || // we have only a dataresource
116117 ( < IResource > this . relationships_dest [ relation_data_key ] . data ) . id !== relation_data_from . data . id
117118 ) {
118119 let resource_data = this . __buildRelationship ( relation_data_from . data , this . included_resources ) ;
You can’t perform that action at this time.
0 commit comments