|
@@ -530,7 +530,8 @@ class PostRepository
|
|
*/
|
|
*/
|
|
public function getType($request)
|
|
public function getType($request)
|
|
{
|
|
{
|
|
- return $this->post->where('id', $request['id'])->value('type');
|
|
|
|
|
|
+ $type = $this->post->where('id', $request['id'])->value('type');
|
|
|
|
+ return [$type];
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|