make shell.exec options non-optional

This commit is contained in:
Girish Ramakrishnan
2017-09-09 19:48:05 -07:00
parent 300d3dd545
commit 547a80f17b
3 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ function backupBoxWithAppBackupIds(appBackupIds, prefix, callback) {
`/usr/bin/mysqldump -u root ${password} --single-transaction --routines \
--triggers ${config.database().name} > "${paths.BOX_DATA_DIR}/box.mysqldump"`
];
shell.exec('backupBox', '/bin/bash', mysqlDumpArgs, function (error) {
shell.exec('backupBox', '/bin/bash', mysqlDumpArgs, { }, function (error) {
if (error) return callback(new BackupsError(BackupsError.INTERNAL_ERROR, error));
backupdb.add({ id: backupId, version: config.version(), type: backupdb.BACKUP_TYPE_BOX, dependsOn: appBackupIds, restoreConfig: null }, function (error) {