Error handling in undelete function and created the update function in BoardApiController
Signed-off-by: Ryan Fletcher <ryan.fletcher@codepassion.ca>
This commit is contained in:
committed by
Julius Härtl
parent
d82746be97
commit
6822d7d099
@@ -114,7 +114,8 @@ class BoardApiController extends ApiController {
|
||||
*
|
||||
* Create a board with the specified title and color.
|
||||
*/
|
||||
public function update($boardId, $title, $color, $archived) {
|
||||
public function update($boardId, $title, $color, $archived) {
|
||||
|
||||
$board = $this->service->update($boardId, $title, $color, $archived);
|
||||
|
||||
if ($board === false || $board === null) {
|
||||
|
||||
Reference in New Issue
Block a user