We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc38891 commit b4bd7cfCopy full SHA for b4bd7cf
src/CommandBus/Handler/Repository/ContentsHandler.php
@@ -46,6 +46,11 @@ public function handle(ContentsCommand $command)
46
new Request('GET', $uri)
47
)
48
)->flatMap(function ($contents) {
49
+ $parsedContents = $contents->getBody()->getParsedContents();
50
+ if (isset($parsedContents['type'])) {
51
+ return observableFromArray([$parsedContents]);
52
+ }
53
+
54
return observableFromArray($contents->getBody()->getParsedContents());
55
})->map(function ($content) use ($command) {
56
$content['repository_fullname'] = $command->getFullname();
0 commit comments