added error checks to refreshInventory service