Merge pull request #2207 from dpalou/MOBILE-3213
MOBILE-3213 core: Fix exception when invalidate site plugin contentmain
commit
11a91c4cb6
|
@ -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…
Reference in New Issue