feature(cloudcmd) terminal-run: return -1, when not load

This commit is contained in:
coderaiser 2022-07-01 13:49:44 +03:00
parent e44e4fa47d
commit 391269b1ed
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ module.exports = function loadModule(params) {
if (e)
return console.error(e);
await a.show(...args);
return await a.show(...args);
};
};

View file

@ -56,7 +56,7 @@ module.exports.init = async () => {
module.exports.show = promisify((options = {}, fn) => {
if (!Loaded)
return;
return fn(null, -1);
if (!config('terminal'))
return;