Fix error when loading nodes
This commit is contained in:
parent
c9883b5caf
commit
0908830003
|
@ -37,9 +37,7 @@ class SubuserTransformer extends BaseTransformer
|
||||||
'id' => $subuser->id,
|
'id' => $subuser->id,
|
||||||
'user_id' => $subuser->user_id,
|
'user_id' => $subuser->user_id,
|
||||||
'server_id' => $subuser->server_id,
|
'server_id' => $subuser->server_id,
|
||||||
'permissions' => $subuser->permissions->map(function (Permission $permission) {
|
'permissions' => $subuser->permissions,
|
||||||
return $permission->permission;
|
|
||||||
}),
|
|
||||||
'created_at' => $this->formatTimestamp($subuser->created_at),
|
'created_at' => $this->formatTimestamp($subuser->created_at),
|
||||||
'updated_at' => $this->formatTimestamp($subuser->updated_at),
|
'updated_at' => $this->formatTimestamp($subuser->updated_at),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue