From 6d09de4877899374a425aab552951b088d9ec218 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 24 May 2019 15:30:49 +0200 Subject: [PATCH] MOBILE-3039 calendar: Fix WS error when viewing event --- src/addon/calendar/providers/calendar.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addon/calendar/providers/calendar.ts b/src/addon/calendar/providers/calendar.ts index bfcb87110..40dcd2208 100644 --- a/src/addon/calendar/providers/calendar.ts +++ b/src/addon/calendar/providers/calendar.ts @@ -330,11 +330,11 @@ export class AddonCalendarProvider { getEventById(id: number, siteId?: string): Promise { return this.sitesProvider.getSite(siteId).then((site) => { const preSets = { - cacheKey: this.getEventCacheKey(id) + cacheKey: this.getEventCacheKey(id), + updateFrequency: CoreSite.FREQUENCY_RARELY }, data = { - eventid: id, - updateFrequency: CoreSite.FREQUENCY_RARELY + eventid: id }; return site.read('core_calendar_get_calendar_event_by_id', data, preSets).then((response) => {