mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(rest) pParams -> p.params
This commit is contained in:
parent
b86ce2d4e0
commit
f3ed6e5d41
1 changed files with 3 additions and 3 deletions
|
|
@ -104,9 +104,9 @@
|
|||
case 'GET':
|
||||
if( Util.strCmp(lQuery, 'size') )
|
||||
dir.getSize(p.name, function(pErr, pSize){
|
||||
if(!pErr){
|
||||
if (!pErr){
|
||||
lSize = CloudFunc.getShortSize(pSize);
|
||||
console.log(lSize);
|
||||
Util.log(lSize);
|
||||
main.sendResponse(p, lSize);
|
||||
}
|
||||
else
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
if (lDiff && !lRet)
|
||||
fs.writeFile(lName, lDiff, Util.call(write, p.params));
|
||||
else
|
||||
main.sendError(pParams, lRet || lDiff);
|
||||
main.sendError(p.params, lRet || lDiff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue