Skip to content

Commit 8aecba5

Browse files
Gmail - skip when message is not found (#15929)
* skip when message is not found * bump versions
1 parent cad7b84 commit 8aecba5

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

components/gmail/package.json

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

components/gmail/sources/common/polling-history.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ export default {
103103
if (this.excludeLabels && message.labelIds.some((i) => this.excludeLabels.includes(i))) {
104104
return;
105105
}
106-
} catch {
107-
console.log(`Message ${id} not found`);
106+
} catch (error) {
107+
console.log(`Message ${id} not found: ${error.message}`);
108+
return;
108109
}
109110
this.emitEvent(message);
110111
},

components/gmail/sources/new-email-received/new-email-received.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
name: "New Email Received",
1616
description: "Emit new event when a new email is received.",
1717
type: "source",
18-
version: "0.2.0",
18+
version: "0.2.1",
1919
dedupe: "unique",
2020
props: {
2121
gmail,

components/gmail/sources/new-labeled-email/new-labeled-email.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
name: "New Labeled Email",
99
description: "Emit new event when a new email is labeled.",
1010
type: "source",
11-
version: "0.0.7",
11+
version: "0.0.8",
1212
dedupe: "unique",
1313
props: {
1414
...common.props,

0 commit comments

Comments
 (0)