mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(rest) change order of query, name
This commit is contained in:
parent
94125cbc9b
commit
b3d024f0da
3 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
|||
(function(){
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
var DIR = '../../../',
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
exports.onDelete = onDelete;
|
||||
|
||||
function onDelete(name, files, query, callback) {
|
||||
function onDelete(query, name, files, callback) {
|
||||
var func = Util.exec.ret(callback),
|
||||
fileNames = Util.slice(files);
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
exports.onPut = onPut;
|
||||
|
||||
function onPut(name, query, readStream, callback) {
|
||||
function onPut(query, name, readStream, callback) {
|
||||
var func = Util.exec.ret(callback),
|
||||
baseName = path.basename(name),
|
||||
onDone = function(msg, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue