Enqueue product sync delete event
This commit is contained in:
@@ -253,7 +253,12 @@ export const app = new Elysia()
|
||||
log.info({ externalId: payload.data.sync_product.external_id, wProductId }, "printful webhook: product deleted");
|
||||
if (!wProductId) throw new NotFoundError("Missing webflow product ID");
|
||||
|
||||
await s.Commerce.Webflow.Products.remove(wProductId);
|
||||
await s.Commerce.ProductSync.Queue.enqueue({
|
||||
type: "product_sync_delete",
|
||||
source: "printful",
|
||||
payload: { wProductId }
|
||||
});
|
||||
|
||||
break;
|
||||
}
|
||||
case Printful.Webhook.Event.PackageShipped: {
|
||||
|
||||
Reference in New Issue
Block a user