Fix the resource key for subusers

This commit is contained in:
Stepan Fedotov 2019-12-28 13:53:33 +02:00 committed by GitHub
parent ab09c7db28
commit 5f60a6c735
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ class ServerTransformer extends BaseTransformer
$server->loadMissing('subusers');
return $this->collection($server->getRelation('subusers'), $this->makeTransformer(SubuserTransformer::class), 'user');
return $this->collection($server->getRelation('subusers'), $this->makeTransformer(SubuserTransformer::class), 'subuser');
}
/**