fix use of context into householdMember::move

This commit is contained in:
Julien Fastré 2021-06-10 11:16:37 +02:00
parent abc79249a2
commit f9758eff5b

View File

@ -47,6 +47,7 @@ class HouseholdMemberController extends ApiController
} catch (Exception\InvalidArgumentException | Exception\UnexpectedValueException $e) { } catch (Exception\InvalidArgumentException | Exception\UnexpectedValueException $e) {
throw new BadRequestException("Deserialization error: {$e->getMessage()}", 45896, $e); throw new BadRequestException("Deserialization error: {$e->getMessage()}", 45896, $e);
} }
// TODO ACL // TODO ACL
// //
// TODO validation // TODO validation
@ -58,7 +59,7 @@ class HouseholdMemberController extends ApiController
} }
$em->flush(); $em->flush();
return $this->json($editor->getHousehold(), Response::HTTP_OK, ["groups" => ["read"]]); return $this->json($editor->getHousehold(), Response::HTTP_OK, [], ["groups" => ["read"]]);
} }
/** /**