Merge pull request #2207 from dpalou/MOBILE-3213

MOBILE-3213 core: Fix exception when invalidate site plugin content
main
Juan Leyva 2019-12-12 10:07:15 +01:00 committed by GitHub
commit 11a91c4cb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}); });
} }