fix: fixed last commit (#753)

This commit is contained in:
Kyrch
2024-10-08 07:02:59 -03:00
committed by GitHub
parent fe9a24167c
commit 0e6a401154
4 changed files with 10 additions and 3 deletions
@@ -65,7 +65,11 @@ class DiscordVideoNotificationAction
Arr::set($videoArray, Video::ATTRIBUTE_OVERLAP, $video->overlap->localize());
Arr::set($videoArray, 'animethemeentries.0.animetheme.type', $theme->type->localize());
$newVideos = $videoArray;
foreach ($videoArray['animethemeentries.0.animetheme.anime.images'] as $key => $image) {
Arr::set($videoArray, "animethemeentries.0.animetheme.anime.images.$key.facet", $anime->images->get($key)->facet->localize());
}
$newVideos[] = $videoArray;
}
Http::withHeaders(['x-api-key' => Config::get('services.discord.api_key')])
@@ -10,6 +10,7 @@ use App\Filament\BulkActions\Base\DetachBulkAction;
use App\Filament\Components\Columns\TextColumn;
use App\Pivots\BasePivot;
use DateTime;
use Filament\Forms\Components\Component;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables\Filters\TrashedFilter;
use Filament\Tables\Table;
@@ -28,7 +29,7 @@ abstract class BaseRelationManager extends RelationManager
/**
* Get the pivot fields of the relation.
*
* @return array<Component>
* @return array<int, Component>
*/
public function getPivotFields(): array
{
@@ -8,6 +8,7 @@ use App\Filament\RelationManagers\BaseRelationManager;
use App\Filament\Resources\Wiki\ExternalResource as ExternalResourceResource;
use App\Models\Wiki\ExternalResource;
use App\Pivots\Wiki\AnimeResource;
use Filament\Forms\Components\Component;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Form;
use Filament\Tables\Table;
@@ -20,7 +21,7 @@ abstract class ResourceRelationManager extends BaseRelationManager
/**
* Get the pivot fields of the relation.
*
* @return array<Component>
* @return array<int, Component>
*/
public function getPivotFields(): array
{
@@ -8,6 +8,7 @@ use App\Filament\RelationManagers\Wiki\ArtistRelationManager;
use App\Models\Wiki\Song;
use App\Models\Wiki\Artist;
use App\Pivots\Wiki\ArtistSong;
use Filament\Forms\Components\Component;
use Filament\Forms\Components\TextInput;
use Filament\Tables\Table;