MOBILE-3213 core: Fix exception when invalidate site plugin content
This commit is contained in:
		
							parent
							
								
									4c09231e14
								
							
						
					
					
						commit
						ee4bf2944c
					
				@ -336,6 +336,8 @@ export class CoreSitePluginsProvider {
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    invalidateCallWS(method: string, data: any, preSets?: CoreSiteWSPreSets, siteId?: string): Promise<any> {
 | 
					    invalidateCallWS(method: string, data: any, preSets?: CoreSiteWSPreSets, siteId?: string): Promise<any> {
 | 
				
			||||||
        return this.sitesProvider.getSite(siteId).then((site) => {
 | 
					        return this.sitesProvider.getSite(siteId).then((site) => {
 | 
				
			||||||
 | 
					            preSets = preSets || {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return site.invalidateWsCacheForKey(preSets.cacheKey || this.getCallWSCacheKey(method, data));
 | 
					            return site.invalidateWsCacheForKey(preSets.cacheKey || this.getCallWSCacheKey(method, data));
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user