Nice work with this. Not a bug, but fyi:
FYI, you can use event.headers["x-shopify-topic"] in your shopify sync webhook to determine what type of action occured e.g. products/create, products/update. I see currently you have some workarounds with if (data.hasOwnProperty('title') && data.hasOwnProperty('handle'))