mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
parent
e2dcdd2866
commit
9023ff0b68
@ -140,7 +140,7 @@ themes = {
|
|||||||
// @TODO we should probably do this as part of saving the theme
|
// @TODO we should probably do this as part of saving the theme
|
||||||
// remove zip upload from multer
|
// remove zip upload from multer
|
||||||
// happens in background
|
// happens in background
|
||||||
Promise.promisify(fs.removeSync)(zip.path)
|
Promise.promisify(fs.remove)(zip.path)
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
logging.error(new errors.GhostError({err: err}));
|
logging.error(new errors.GhostError({err: err}));
|
||||||
});
|
});
|
||||||
@ -149,7 +149,7 @@ themes = {
|
|||||||
// remove extracted dir from gscan
|
// remove extracted dir from gscan
|
||||||
// happens in background
|
// happens in background
|
||||||
if (checkedTheme) {
|
if (checkedTheme) {
|
||||||
Promise.promisify(fs.removeSync)(checkedTheme.path)
|
Promise.promisify(fs.remove)(checkedTheme.path)
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
logging.error(new errors.GhostError({err: err}));
|
logging.error(new errors.GhostError({err: err}));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user