diff --git a/app/Actions/Http/Api/List/ExternalProfile/StoreExternalProfileListAction.php b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileAction.php similarity index 96% rename from app/Actions/Http/Api/List/ExternalProfile/StoreExternalProfileListAction.php rename to app/Actions/Models/List/ExternalProfile/StoreExternalProfileAction.php index eeda3fa68..5dadb9f0e 100644 --- a/app/Actions/Http/Api/List/ExternalProfile/StoreExternalProfileListAction.php +++ b/app/Actions/Models/List/ExternalProfile/StoreExternalProfileAction.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace App\Actions\Http\Api\List\ExternalProfile; +namespace App\Actions\Models\List\ExternalProfile; use App\Actions\Http\Api\StoreAction; use App\Enums\Models\List\AnimeWatchStatus; @@ -18,9 +18,9 @@ use Illuminate\Support\Facades\Log; /** - * Class StoreExternalProfileListAction. + * Class StoreExternalProfileAction. */ -class StoreExternalProfileListAction +class StoreExternalProfileAction { /** * Store external profile and its entries. diff --git a/app/Http/Controllers/Api/List/ExternalProfileController.php b/app/Http/Controllers/Api/List/ExternalProfileController.php index dbd2be103..9b533398a 100644 --- a/app/Http/Controllers/Api/List/ExternalProfileController.php +++ b/app/Http/Controllers/Api/List/ExternalProfileController.php @@ -7,10 +7,10 @@ use App\Actions\Http\Api\DestroyAction; use App\Actions\Http\Api\ForceDeleteAction; use App\Actions\Http\Api\IndexAction; -use App\Actions\Http\Api\List\ExternalProfile\StoreExternalProfileListAction; use App\Actions\Http\Api\RestoreAction; use App\Actions\Http\Api\ShowAction; use App\Actions\Http\Api\UpdateAction; +use App\Actions\Models\List\ExternalProfile\StoreExternalProfileAction; use App\Enums\Models\List\ExternalProfileVisibility; use App\Features\AllowExternalProfileManagement; use App\Http\Api\Query\Query; @@ -73,10 +73,10 @@ public function index(IndexRequest $request, IndexAction $action): ExternalProfi * Store a newly created resource. * * @param StoreRequest $request - * @param StoreExternalProfileListAction $action + * @param StoreExternalProfileAction $action * @return ExternalProfileResource */ - public function store(StoreRequest $request, StoreExternalProfileListAction $action): ExternalProfileResource + public function store(StoreRequest $request, StoreExternalProfileAction $action): ExternalProfileResource { $validated = array_merge( $request->validated(), diff --git a/app/Models/List/ExternalProfile.php b/app/Models/List/ExternalProfile.php index 31bad23a1..9df801626 100644 --- a/app/Models/List/ExternalProfile.php +++ b/app/Models/List/ExternalProfile.php @@ -24,10 +24,10 @@ * * @property int $profile_id * @property Collection $externalentries + * @property string $name * @property ExternalProfileSite $site * @property int|null $user_id * @property User|null $user - * @property string $username * @property ExternalProfileVisibility $visibility */ class ExternalProfile extends BaseModel