Skip to content

Commit

Permalink
Add mapping property to the response
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandy Hernandez committed Jul 19, 2023
1 parent 8b8d142 commit d0dbcfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Controller/SyncController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public function pushAction(Request $request)
try {
$data = json_decode($request->getContent(), true);
$result = $this->pushService->push($data);
return new JsonResponse($result, 200);
return new JsonResponse(array(
"mappings" => $result
), 200);
} catch (\Exception $e) {
return new JsonResponse($e->getMessage(), 500);
}
Expand Down

0 comments on commit d0dbcfa

Please sign in to comment.