fix(rest) onDelete: func(null, body) -> func

This commit is contained in:
coderaiser 2014-02-25 03:24:01 -05:00
parent cd4f77c3e1
commit 931191ce35

View file

@ -157,12 +157,12 @@
getBody(p.request, function(body) {
var files = Util.parseJSON(body);
onDelete(p.name, files, query, function(error, msg, callback) {
onDelete(p.name, files, query, function(error, callback) {
checkSendError(error, params, function() {
if (callback)
Util.exec(callback);
else
sendMsg(params, 'delete', msg);
sendMsg(params, 'delete', body);
});
});
});
@ -274,7 +274,7 @@
rmFile(name, log);
if (assync === n)
func(null, body);
func();
}
};