Browse Source

fixup! fixup! src: Make inventory only fetch one item

master
Elis Hirwing 3 years ago
parent
commit
457f52f830
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 2
      src/Etu/Controller/Inventory.php

2
src/Etu/Controller/Inventory.php

@ -25,7 +25,7 @@ class Inventory
$item = $this->inventoryHelper->get($args['item']);
// No such item
if (empty($item)) {
if (!$item) {
return $response->withJson(['status' => 'item not found'], 404);
}

Loading…
Cancel
Save