mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-27 17:54:11 +00:00
refactor(rest) zip: add checkSendError
This commit is contained in:
parent
4bf246f7ec
commit
13c4dfcc69
1 changed files with 3 additions and 7 deletions
|
|
@ -351,14 +351,10 @@
|
|||
to : lFiles.to || lFiles.from + '.zip',
|
||||
zip : true,
|
||||
callback : function(pError) {
|
||||
var lName;
|
||||
|
||||
if (pError)
|
||||
sendError(pParams, pError);
|
||||
else {
|
||||
lName = path.basename(lFiles.from);
|
||||
checkSendError(pError, pParams, function() {
|
||||
var lName = path.basename(lFiles.from);
|
||||
sendMsg(pParams, 'zip', lName);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue