Skip to content

Commit ce189ad

Browse files
Osireg17lcaresia
andauthored
Shopify Draft Order Updated trigger not firing when line items are added/removed (#19201)
* Update draft order updated source version and metadata handling * Update package.json * silly --------- Co-authored-by: Lucas Caresia <lucascarezia@gmail.com>
1 parent 67913bb commit ce189ad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

components/shopify_developer_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/shopify_developer_app",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Pipedream Shopify (Developer App) Components",
55
"main": "shopify_developer_app.app.mjs",
66
"keywords": [

components/shopify_developer_app/sources/draft-order-updated/draft-order-updated.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,19 @@ export default {
77
name: "Draft Order Updated (Instant)",
88
type: "source",
99
description: "Emit new event for each draft order updated in a store.",
10-
version: "0.0.1",
10+
version: "0.0.2",
1111
dedupe: "unique",
1212
methods: {
1313
...common.methods,
1414
getTopic() {
1515
return "DRAFT_ORDERS_UPDATE";
1616
},
1717
generateMeta(resource) {
18+
const ts = Date.parse(resource.updated_at);
1819
return {
19-
id: resource.id,
20+
id: ts,
2021
summary: `Draft order updated ${resource.id}`,
21-
ts: Date.parse(resource.created_at),
22+
ts,
2223
};
2324
},
2425
},

0 commit comments

Comments
 (0)