Commit 6825976a authored by project's avatar project

--no commit message

--no commit message
parent 1ea570cd
...@@ -107,7 +107,10 @@ function execute_function(context,response){ ...@@ -107,7 +107,10 @@ function execute_function(context,response){
if (err) { if (err) {
response.error(err); response.error(err);
} else { } else {
response.success(result, output_type); if (result.data.length == 0)
response.reject(); // for no data
else
response.success(result, output_type);
c.end(); c.end();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment