fix: output of parse was not being used
This commit is contained in:
parent
e03748e74a
commit
dde064665b
|
@ -252,12 +252,12 @@ class Response extends SwooleResponse
|
|||
{
|
||||
$output = $this->output($document, $model);
|
||||
|
||||
// If filter is set, parse the item
|
||||
// If filter is set, parse the output
|
||||
if(self::isFilter()){
|
||||
$item = self::getFilter()->parse($output, $model);
|
||||
$output = self::getFilter()->parse($output, $model);
|
||||
}
|
||||
|
||||
$this->json($item);
|
||||
$this->json($output);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue