mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Fixed client side webhook runner (references #1500)
This commit is contained in:
@@ -626,7 +626,7 @@ class StockApiController extends BaseApiController
|
||||
(new WebhookRunner())->run(GROCY_LABEL_PRINTER_WEBHOOK, $webhookData, GROCY_LABEL_PRINTER_HOOK_JSON);
|
||||
}
|
||||
|
||||
return $this->EmptyApiResponse($response);
|
||||
return $this->ApiResponse($response, $webhookData);
|
||||
}
|
||||
|
||||
public function StockEntryPrintLabel(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
@@ -649,7 +649,7 @@ class StockApiController extends BaseApiController
|
||||
(new WebhookRunner())->run(GROCY_LABEL_PRINTER_WEBHOOK, $webhookData, GROCY_LABEL_PRINTER_HOOK_JSON);
|
||||
}
|
||||
|
||||
return $this->EmptyApiResponse($response);
|
||||
return $this->ApiResponse($response, $webhookData);
|
||||
}
|
||||
|
||||
public function RemoveProductFromShoppingList(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Message\ResponseInterface $response, array $args)
|
||||
|
Reference in New Issue
Block a user