diff --git a/packages/log/lib/csv/index.js b/packages/log/lib/csv/index.js index 21fd9ef10..e942085fe 100644 --- a/packages/log/lib/csv/index.js +++ b/packages/log/lib/csv/index.js @@ -13,7 +13,7 @@ export default { const walk = function(parent) { const precious = parent.metadata.header; const results = []; - if (precious !== void 0) { + if (precious !== undefined) { results.push(precious); } if (parent.parent) { diff --git a/packages/log/lib/fs/index.js b/packages/log/lib/fs/index.js index 42291a3c5..5e05bfa56 100644 --- a/packages/log/lib/fs/index.js +++ b/packages/log/lib/fs/index.js @@ -22,11 +22,9 @@ export default { logdir = path.resolve(config.basedir, config.archive); } try { - await this.fs.base.mkdir(logdir, { - $ssh: false - }); + await fs.promises.mkdir(logdir, {recursive: true}); } catch (error) { - if (error.code !== 'NIKITA_FS_MKDIR_TARGET_EEXIST') { + if (error.code !== 'EEXIST') { throw error; } }