MOBILE-3039 calendar: Fix WS error when viewing event
parent
0407d19427
commit
6d09de4877
|
@ -330,11 +330,11 @@ export class AddonCalendarProvider {
|
||||||
getEventById(id: number, siteId?: string): Promise<any> {
|
getEventById(id: number, siteId?: string): Promise<any> {
|
||||||
return this.sitesProvider.getSite(siteId).then((site) => {
|
return this.sitesProvider.getSite(siteId).then((site) => {
|
||||||
const preSets = {
|
const preSets = {
|
||||||
cacheKey: this.getEventCacheKey(id)
|
cacheKey: this.getEventCacheKey(id),
|
||||||
|
updateFrequency: CoreSite.FREQUENCY_RARELY
|
||||||
},
|
},
|
||||||
data = {
|
data = {
|
||||||
eventid: id,
|
eventid: id
|
||||||
updateFrequency: CoreSite.FREQUENCY_RARELY
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return site.read('core_calendar_get_calendar_event_by_id', data, preSets).then((response) => {
|
return site.read('core_calendar_get_calendar_event_by_id', data, preSets).then((response) => {
|
||||||
|
|
Loading…
Reference in New Issue