mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
refactor(put) patch
This commit is contained in:
parent
96da0c621b
commit
03416088b5
1 changed files with 4 additions and 4 deletions
|
|
@ -46,11 +46,11 @@
|
|||
break;
|
||||
|
||||
case 'patch':
|
||||
patch(name, readStream, function(error) {
|
||||
var msg;
|
||||
|
||||
patch(name, readStream, function(error, msg) {
|
||||
var deprecated = '[Deprecated. Clear cache to use new API]';
|
||||
|
||||
if (!error)
|
||||
msg = CloudFunc.formatMsg('[Deprecated. Clear cache to use new API]patch', baseName);
|
||||
msg = deprecated + msg;
|
||||
|
||||
callback(error, msg);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue