fix type error with WebauthnKeyTransformer
This commit is contained in:
parent
4da38891c7
commit
5843c34240
2 changed files with 5 additions and 1 deletions
|
@ -87,6 +87,8 @@ class WebauthnController extends ClientApiController
|
|||
$request->input('name'),
|
||||
);
|
||||
|
||||
|
||||
|
||||
return $this->fractal->item($webauthnKey)
|
||||
->transformWith(WebauthnKeyTransformer::class)
|
||||
->toArray();
|
||||
|
|
|
@ -17,8 +17,10 @@ class WebauthnKeyTransformer extends Transformer
|
|||
|
||||
/**
|
||||
* Return basic information about the currently logged in user.
|
||||
*
|
||||
* @param \Pterodactyl\Models\WebauthnKey|\LaravelWebauthn\Models\WebauthnKey $model
|
||||
*/
|
||||
public function transform(WebauthnKey $model): array
|
||||
public function transform($model): array
|
||||
{
|
||||
return [
|
||||
'id' => $model->id,
|
||||
|
|
Loading…
Reference in a new issue