From bb9aa32d930a6b1c0f5dc3faafbc2813e65ba56a Mon Sep 17 00:00:00 2001 From: Osi Obomighie <93836683+Osireg17@users.noreply.github.com> Date: Sun, 23 Nov 2025 22:20:54 +0000 Subject: [PATCH] Update draft order updated source version and metadata handling --- .../sources/draft-order-updated/draft-order-updated.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/shopify_developer_app/sources/draft-order-updated/draft-order-updated.mjs b/components/shopify_developer_app/sources/draft-order-updated/draft-order-updated.mjs index 479408cc38b0f..c6553d46bf157 100644 --- a/components/shopify_developer_app/sources/draft-order-updated/draft-order-updated.mjs +++ b/components/shopify_developer_app/sources/draft-order-updated/draft-order-updated.mjs @@ -7,7 +7,7 @@ export default { name: "Draft Order Updated (Instant)", type: "source", description: "Emit new event for each draft order updated in a store.", - version: "0.0.1", + version: "0.0.2", dedupe: "unique", methods: { ...common.methods, @@ -15,10 +15,11 @@ export default { return "DRAFT_ORDERS_UPDATE"; }, generateMeta(resource) { + const ts = Date.parse(resource.updated_at); return { - id: resource.id, + id: ts, summary: `Draft order updated ${resource.id}`, - ts: Date.parse(resource.created_at), + ts, }; }, },