Skip to content

Commit fbf4ded

Browse files
committed
passing values to omit
1 parent 54c88fe commit fbf4ded

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/triggers/contacts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ function processAction(msg, cfg, snapshot) {
5757
const values = contacts.value;
5858
console.log('Found %s contacts', values.length);
5959
if (values.length > 0) {
60-
const messageBody = _.omitBy(contacts, (value, key) => key.startsWith('@odata.'));
60+
const messageBody = _.omitBy(values, (value, key) => key.startsWith('@odata.'));
61+
console.log('MessageBody: ' + messageBody);
6162
messageBody.calendarId = cfg.calendarId;
6263
this.emit('data', messages.newMessageWithBody(messageBody));
6364
let lmdate = new Date(values[values.length - 1].lastModifiedDateTime);

0 commit comments

Comments
 (0)