Refactor: InventoryBackend
Most important change was:
console.log("Updated inventory", updatedInventory);
to
console.log("Updated inventory", inventory);
This allows AddInventoryFrontend to make PATCH request to inventorybackend to update inventory weight