refactor: make removeVolume not clear

This commit is contained in:
Girish Ramakrishnan
2019-01-15 09:36:32 -08:00
parent 13fac3072d
commit 9d45e4e0ae
2 changed files with 8 additions and 9 deletions

View File

@@ -751,7 +751,10 @@ function teardownLocalStorage(app, options, callback) {
debugApp(app, 'teardownLocalStorage');
docker.removeVolume(app, `${app.id}-localstorage`, callback);
async.series([
docker.clearVolume.bind(null, app, `${app.id}-localstorage`),
docker.removeVolume.bind(null, app, `${app.id}-localstorage`)
], callback);
}
function setupOauth(app, options, callback) {