From 17c3776b097ddb1b898895d35b778f1ed7a8ced2 Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Wed, 8 Jan 2020 10:28:26 -0600 Subject: [PATCH] Fix spelling --- controllers/StockApiController.php | 2 +- routes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/StockApiController.php b/controllers/StockApiController.php index c9cc5538..12b3270d 100644 --- a/controllers/StockApiController.php +++ b/controllers/StockApiController.php @@ -388,7 +388,7 @@ class StockApiController extends BaseApiController return $this->ApiResponse($this->StockService->GetCurrentStock()); } - public function CurrentVolatilStock(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args) + public function CurrentVolatileStock(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args) { $nextXDays = 5; if (isset($request->getQueryParams()['expiring_days']) && !empty($request->getQueryParams()['expiring_days']) && is_numeric($request->getQueryParams()['expiring_days'])) diff --git a/routes.php b/routes.php index 9f4ae346..24f1db80 100644 --- a/routes.php +++ b/routes.php @@ -162,7 +162,7 @@ $app->group('/api', function() { $this->get('/stock', '\Grocy\Controllers\StockApiController:CurrentStock'); $this->put('/stock', '\Grocy\Controllers\StockApiController:EditStock'); - $this->get('/stock/volatile', '\Grocy\Controllers\StockApiController:CurrentVolatilStock'); + $this->get('/stock/volatile', '\Grocy\Controllers\StockApiController:CurrentVolatileStock'); $this->get('/stock/products/{productId}', '\Grocy\Controllers\StockApiController:ProductDetails'); $this->get('/stock/products/{productId}/entries', '\Grocy\Controllers\StockApiController:ProductStockEntries'); $this->get('/stock/products/{productId}/locations', '\Grocy\Controllers\StockApiController:ProductStockLocations');