mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
parent
e2dcdd2866
commit
9023ff0b68
@ -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}));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user