From 5f60a6c73566764c5268f281288c141821b2c5e5 Mon Sep 17 00:00:00 2001 From: Stepan Fedotov Date: Sat, 28 Dec 2019 13:53:33 +0200 Subject: [PATCH] Fix the resource key for subusers --- app/Transformers/Api/Application/ServerTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformers/Api/Application/ServerTransformer.php b/app/Transformers/Api/Application/ServerTransformer.php index 27e377e2d..70dc185d6 100644 --- a/app/Transformers/Api/Application/ServerTransformer.php +++ b/app/Transformers/Api/Application/ServerTransformer.php @@ -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'); } /**