Skip to content

Commit

Permalink
fix video data resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Ramalho committed Jul 22, 2021
1 parent b2017e2 commit 97e5f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Resolver/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function resolveData($value = null, $args = [], $context = [], ResolveInf
$asset = $value->getData();
$fieldHelper = $this->getGraphQlService()->getAssetFieldHelper();
$fieldHelper->extractData($data, $asset, $args, $context, $resolveInfo);
$data['data'] = $data['data'] ? base64_encode($data['data']) : null;
$data['data'] = !empty($data['data']) ? base64_encode($data['data']) : null;
$data['__elementSubtype'] = $asset->getType();

return $data;
Expand Down

0 comments on commit 97e5f55

Please sign in to comment.