Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed May 24, 2024
1 parent 01937c0 commit 14dc2af
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 76 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/ImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Illuminate\Support\Facades\Log;
use Intervention\Image\ImageManager;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;
use Kami\Cocktail\DTO\Image as ImageDTO;
use Kami\Cocktail\Services\ImageService;
use Kami\Cocktail\Http\Requests\ImageRequest;
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Resources/CocktailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public function toArray($request)
'updated_at' => $this->updated_at?->toJson(),
'method' => new CocktailMethodResource($this->whenLoaded('method')),
'abv' => $this->abv,
'volume_ml' => $this->when($this->relationLoaded('ingredients'), fn() => $this->getVolume()),
'alcohol_units' => $this->when($this->relationLoaded('method'), fn() => $this->getAlcoholUnits()),
'calories' => $this->when($this->relationLoaded('method'), fn() => $this->getCalories()),
'volume_ml' => $this->when($this->relationLoaded('ingredients'), fn () => $this->getVolume()),
'alcohol_units' => $this->when($this->relationLoaded('method'), fn () => $this->getAlcoholUnits()),
'calories' => $this->when($this->relationLoaded('method'), fn () => $this->getCalories()),
'created_user' => new UserBasicResource($this->whenLoaded('createdUser')),
'updated_user' => new UserBasicResource($this->whenLoaded('updatedUser')),
'in_shelf' => $this->when($isSingleCocktail, fn () => $this->canUserMake(auth()->user())),
Expand Down
126 changes: 54 additions & 72 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14dc2af

Please sign in to comment.