response function should be at front of params
This commit is contained in:
parent
81acc105c6
commit
d3fa7ceba2
@ -196,7 +196,7 @@ Server.prototype.handlePOST = function(req, res) {
|
||||
// Try to call the method, but intercept errors and call our
|
||||
// onFailure handler.
|
||||
var method = self.functions[decoded.method];
|
||||
var args = decoded.params.push(function(resp) {
|
||||
var args = decoded.params.unshift(function(resp) {
|
||||
onSuccess(resp);
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user