MOBILE-3039 calendar: Fix WS error when viewing event

main
Dani Palou 2019-05-24 15:30:49 +02:00
parent 0407d19427
commit 6d09de4877
1 changed files with 3 additions and 3 deletions

View File

@ -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) => {