Skip to content

Commit

Permalink
fix: require '@cocreate/nginx'
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 29, 2023
1 parent 3635e50 commit acab9d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/nginx.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {createServer, deleteServer} = require('./other/nginxConfigManager.js')
const { createServer, deleteServer } = require('@cocreate/nginx')

module.exports = async function nginx(repos, args) {
let failed = [];
Expand All @@ -11,13 +11,13 @@ module.exports = async function nginx(repos, args) {
} else if (args[0] === 'delete') {
args.shift()
await deleteServer(args);
} else
} else
await createServer(args);
}
} catch (err) {
failed.push({ name: 'GENERAL', des: err.message });
console.error(err.red);
} finally {
} finally {
return failed;
}

Expand Down

0 comments on commit acab9d3

Please sign in to comment.