Batched webhook trigger catalog entry

This commit is contained in:
nicktrn
2023-12-06 08:58:10 +00:00
parent 16ca511626
commit 3738794a18
+12
View File
@@ -45,6 +45,18 @@ client.defineJob({
},
});
client.defineJob({
id: "shopify-products-delete-batch",
name: "Shopify: products/delete (batch)",
version: "0.1.0",
trigger: shopify.on("products/delete").batch({
maxPayloads: 5,
}),
run: async (payload, io, ctx) => {
await io.logger.log(`products deleted: ${payload.length}`);
},
});
client.defineJob({
id: "shopify-task-examples",
name: "Shopify: Task Examples",