Skip to content

Commit

Permalink
Merge pull request #5 from For-me/master
Browse files Browse the repository at this point in the history
auto.js中参数错误导致无法正常运行
  • Loading branch information
alsotang committed Dec 19, 2016
2 parents 6b7a652 + 0ea2a78 commit 3522899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto.js
Expand Up @@ -81,13 +81,13 @@ async.auto({
callback(null, 'myfolder');
}, 200);
},
writeFile: ['getData', 'makeFolder', function(callback, results) {
writeFile: ['getData', 'makeFolder', function(results, callback) {
setTimeout(function(){
console.log('1.2: wrote file');
callback('myerr');
}, 300);
}],
emailFiles: ['writeFile', function(callback, results) {
emailFiles: ['writeFile', function(results, callback) {
console.log('1.2: emailed file: ' + results.writeFile);
callback('err sending email', results.writeFile);
}]
Expand Down

0 comments on commit 3522899

Please sign in to comment.