diff --git a/src/backend.lua b/src/backend.lua index ff031e6..0b87eae 100644 --- a/src/backend.lua +++ b/src/backend.lua @@ -148,7 +148,10 @@ end function handleTransaction(transaction) - logger:debug("Handle Transaction") + logger:debug("Handle Transaction... Reloading storage to be sure") + os.queueEvent("kstUpdateProducts") + os.pullEvent("kristify:storageRefreshed") + logger:debug("Storage refreshed!") local product = utils.getProduct(products, transaction.sent_metaname) if product == false or product == nil then