#490 fix(admin): update pattern for mal studio cover image (#492)

This commit is contained in:
paranarimasu
2022-12-12 00:58:11 -06:00
committed by GitHub
parent 4cf68a96ac
commit d3a8d58cd2
2 changed files with 2 additions and 2 deletions
@@ -53,6 +53,6 @@ class BackfillLargeCoverImageAction extends BackfillStudioImageAction
*/
protected function getMalImage(ExternalResource $malResource): ?Image
{
return $this->createImage("https://cdn.myanimelist.net/img/common/companies/$malResource->external_id.png");
return $this->createImage("https://cdn.myanimelist.net/images/company/$malResource->external_id.png");
}
}
@@ -136,7 +136,7 @@ class BackfillLargeCoverImageTest extends TestCase
$file = File::fake()->image($this->faker->word().'.jpg');
Http::fake([
'https://cdn.myanimelist.net/img/common/companies/*' => Http::response($file->getContent()),
'https://cdn.myanimelist.net/images/company/*' => Http::response($file->getContent()),
]);
$resource = ExternalResource::factory()->createOne([