Skip to content

Commit bb688eb

Browse files
committed
[FIX] Dedup key in Outlook Shared Email Received causing events to be dropped
1 parent 6da388e commit bb688eb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/microsoft_outlook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/microsoft_outlook",
3-
"version": "1.7.3",
3+
"version": "1.7.4",
44
"description": "Pipedream Microsoft Outlook Components",
55
"main": "microsoft_outlook.app.mjs",
66
"keywords": [

components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "microsoft_outlook-new-email-in-shared-folder",
77
name: "New Email in Shared Folder Event",
88
description: "Emit new event when an email is received in specified shared folders.",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {
@@ -64,12 +64,13 @@ export default {
6464
if (responseArray.length) this._setLastDate(responseArray[0].createdDateTime);
6565

6666
for (const item of responseArray.reverse()) {
67+
const ts = item.createdDateTime;
6768
this.$emit(
6869
item,
6970
{
70-
id: item.conversationId,
71+
id: `${item.id || item.conversationId}-${ts}`,
7172
summary: `A new email with id: "${item.conversationId}" was received!`,
72-
ts: item.createdDateTime,
73+
ts,
7374
},
7475
);
7576
}

0 commit comments

Comments
 (0)