Return the content of the ticket on replace motive POST request

This commit is contained in:
Julien Fastré 2024-04-18 15:44:05 +02:00
parent 3f789ad0f4
commit 56a1a488de
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -59,6 +59,11 @@ final readonly class ReplaceMotiveController
$this->entityManager->flush();
return new JsonResponse(null, Response::HTTP_CREATED);
return new JsonResponse(
$this->serializer->serialize($ticket, 'json', ['groups' => 'read']),
Response::HTTP_CREATED,
[],
true
);
}
}