mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 10:09:04 +00:00
fix(rest) onDelete: func(null, body) -> func
This commit is contained in:
parent
cd4f77c3e1
commit
931191ce35
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue