Skip to content

Commit

Permalink
casted to array (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaspari authored May 24, 2024
1 parent c5a7f00 commit 5669d7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/App/Http/Controllers/RemoteCustomFieldController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public function resolve(RemoteType $remoteType): JsonResponse
$data = $remoteType->getRemoteData();

$data = $remoteType->data_path ? Arr::get($data, $remoteType->data_path) : $data;

$transformed = $this->transform($data, json_decode($remoteType->mappings, true));
$transformed = $this->transform($data, $remoteType->mappings);

return response()->json($transformed);
}
Expand Down

0 comments on commit 5669d7e

Please sign in to comment.