@sprucelabs/spruce-calendar-components 20.5.6 → 20.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,6 +153,7 @@ export default class RemoteEventStore {
153
153
  return target;
154
154
  }
155
155
  cleanPayload(payload) {
156
+ const dateToUpdate = payload.dateToUpdate;
156
157
  const normalized = normalizeSchemaValues(calendarEventSchema, payload, {
157
158
  shouldValidate: false,
158
159
  });
@@ -171,6 +172,10 @@ export default class RemoteEventStore {
171
172
  //@ts-ignore
172
173
  delete normalized[key];
173
174
  }
175
+ if (dateToUpdate) {
176
+ ;
177
+ normalized.dateToUpdate = dateToUpdate;
178
+ }
174
179
  return normalized;
175
180
  }
176
181
  setCalendarId(id) {
@@ -139,6 +139,7 @@ class RemoteEventStore {
139
139
  return target;
140
140
  }
141
141
  cleanPayload(payload) {
142
+ const dateToUpdate = payload.dateToUpdate;
142
143
  const normalized = (0, schema_1.normalizeSchemaValues)(calendar_utils_1.calendarEventSchema, payload, {
143
144
  shouldValidate: false,
144
145
  });
@@ -157,6 +158,10 @@ class RemoteEventStore {
157
158
  //@ts-ignore
158
159
  delete normalized[key];
159
160
  }
161
+ if (dateToUpdate) {
162
+ ;
163
+ normalized.dateToUpdate = dateToUpdate;
164
+ }
160
165
  return normalized;
161
166
  }
162
167
  setCalendarId(id) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-calendar-components",
3
3
  "description": "Calendar components for working with calendars and Sprucebot.",
4
- "version": "20.5.6",
4
+ "version": "20.5.7",
5
5
  "skill": {
6
6
  "namespace": "calendar"
7
7
  },