Re:Show HN: The home automation system with an API
by schappim on Friday December 28, 2012 @08:25PM
(#4980558)
Q. >> why isn't the "remaining" number going down
A. Slow web hooks. The page is written in Sinatra. The sinatra app stores an inventory value in MongoDB.
When there is a new order, our commerce engine Shopify (is meant to) send a web hook POST to the sinatra app to get it to pull the current inventory via Shopify's API.
This hasn't been happening!
A. Slow web hooks. The page is written in Sinatra. The sinatra app stores an inventory value in MongoDB.
When there is a new order, our commerce engine Shopify (is meant to) send a web hook POST to the sinatra app to get it to pull the current inventory via Shopify's API. This hasn't been happening!
Cheers,
Marcus