targz: make sourceDir a string

This commit is contained in:
Girish Ramakrishnan
2017-09-17 18:50:15 -07:00
parent 867a59d5d8
commit b0ee116004
4 changed files with 7 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ function backup(apiConfig, backupId, sourceDir, callback) {
callback(null);
});
targz.create([{ source: sourceDir, destination: '.' }], apiConfig.key || null, fileStream, callback);
targz.create(sourceDir, apiConfig.key || null, fileStream, callback);
});
}