fix: parse arguments to CardService.reorder correctly to int

Signed-off-by: Viktor Diezel <viktor.diezel@posteo.de>
This commit is contained in:
Viktor Diezel
2025-08-04 15:58:06 +02:00
parent 18eea3584e
commit eee35ac6ad
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ class CardApiController extends ApiController {
* Reorder cards
*/
public function reorder($stackId, $order) {
$card = $this->cardService->reorder($this->request->getParam('cardId'), $stackId, $order);
$card = $this->cardService->reorder((int)$this->request->getParam('cardId'), (int)$stackId, (int)$order);
return new DataResponse($card, HTTP::STATUS_OK);
}
}