fix: invalid key "src" with no detector
This commit is contained in:
@@ -233,7 +233,7 @@ class ProjectsPump implements PumpInterface
|
||||
try {
|
||||
$info = $this->scoutService->get($url);
|
||||
|
||||
return new ProjectVideo($info->src, $info->cover, $info->image);
|
||||
return new ProjectVideo($info->url, $info->cover, $info->image);
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,6 @@ class ProjectVideoMapTransformer implements PropertyTransformerInterface
|
||||
{
|
||||
$info = $this->scoutService->get($value);
|
||||
|
||||
return new ProjectVideo($info->src, $info->cover, $info->image);
|
||||
return new ProjectVideo($info->url, $info->cover, $info->image);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user