MOBILE-3213 core: Fix exception when invalidate site plugin content

main
Dani Palou 2019-12-12 09:26:40 +01:00
parent 4c09231e14
commit ee4bf2944c
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> {
return this.sitesProvider.getSite(siteId).then((site) => {
preSets = preSets || {};
return site.invalidateWsCacheForKey(preSets.cacheKey || this.getCallWSCacheKey(method, data));
});
}