if (xreq->queryitf->success)
xreq->queryitf->success(xreq->query, obj, info);
else
- xreq->queryitf->reply(xreq->query, afb_msg_json_reply_ok(info, obj, &xreq->context, NULL));
+ xreq->queryitf->reply(xreq->query, 0, afb_msg_json_reply_ok(info, obj, &xreq->context, NULL));
}
}
if (xreq->queryitf->fail)
xreq->queryitf->fail(xreq->query, status, info);
else
- xreq->queryitf->reply(xreq->query, afb_msg_json_reply_error(status, info, &xreq->context, NULL));
+ xreq->queryitf->reply(xreq->query, 1, afb_msg_json_reply_error(status, info, &xreq->context, NULL));
}
}