From 6f5fc4ab1050f79dda9fdc3e10d0679333ce075f Mon Sep 17 00:00:00 2001 From: Guillermo Croppi Date: Wed, 27 Nov 2019 11:58:05 +0200 Subject: [PATCH] Fixed "updateMember" API --- src/Gate/InitiativeApiGate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gate/InitiativeApiGate.php b/src/Gate/InitiativeApiGate.php index 3734257..73060fd 100644 --- a/src/Gate/InitiativeApiGate.php +++ b/src/Gate/InitiativeApiGate.php @@ -187,7 +187,7 @@ public function removeMember($request, $response, $params) // PATCH /initiatives/{ini}/members/{usr} public function updateMember($request, $response, $params) { - $result = $this->resources['initiative']->removeMember( + $result = $this->resources['initiative']->updateMember( $request->getAttribute('subject'), Utils::sanitizedIdParam('ini', $params), Utils::sanitizedIdParam('usr', $params),