diff --git a/core/server/api/themes.js b/core/server/api/themes.js index 6524c74fe9..61b4abc0ca 100644 --- a/core/server/api/themes.js +++ b/core/server/api/themes.js @@ -140,7 +140,7 @@ themes = { // @TODO we should probably do this as part of saving the theme // remove zip upload from multer // happens in background - Promise.promisify(fs.removeSync)(zip.path) + Promise.promisify(fs.remove)(zip.path) .catch(function (err) { logging.error(new errors.GhostError({err: err})); }); @@ -149,7 +149,7 @@ themes = { // remove extracted dir from gscan // happens in background if (checkedTheme) { - Promise.promisify(fs.removeSync)(checkedTheme.path) + Promise.promisify(fs.remove)(checkedTheme.path) .catch(function (err) { logging.error(new errors.GhostError({err: err})); });