Skip to content

Commit 907ba70

Browse files
author
Igor Drobiazko
committed
Pick
1 parent 880c527 commit 907ba70

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/actions/createEvent.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ function processAction(msg, cfg) {
4949
console.log('---MSG---');
5050
console.log('%j', messages.newMessageWithBody(data));
5151

52-
let messageBody = _.cloneDeep(data);
52+
//const messageBody = _.cloneDeep(data);
53+
const messageBody = _.pick(data, [
54+
'id', 'createdDateTime', 'lastModifiedDateTime', 'originalStartTimeZone',
55+
'originalEndTimeZone', 'iCalUId', 'reminderMinutesBeforeStart', 'subject',
56+
'importance', 'sensitivity', 'isAllDay', 'isCancelled', 'isOrganizer', 'showAs',
57+
'webLink', 'body', 'start', 'end', 'location', 'organizer']);
5358
messageBody.calendarId = cfg.calendarId;
5459
console.log('Emitting data ...');
5560
self.emit('data', messages.newMessageWithBody(messageBody));

0 commit comments

Comments
 (0)