fix: output of parse was not being used

This commit is contained in:
Christy Jacob
2021-01-11 19:20:54 +05:30
parent e03748e74a
commit dde064665b
+3 -3
View File
@@ -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);
}