Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cli/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ const _executeCase = async function (catalogCommand, commandName, f, isUserRequ

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserById(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Config extends BaseCLIHandler {
const _executeCase = async function (catalogCommand, commandName, f) {
try {
const item = catalogCommand[commandName];
f(item);
await f(item);
} catch (error) {
logger.error(error.message);
}
Expand Down
4 changes: 2 additions & 2 deletions src/cli/connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ async function _executeCase(commands, commandName, f, isUserRequired) {

if (isUserRequired) {
const decoratedFunction = CliDecorator.prepareUserById(f);
decoratedFunction(obj);
await decoratedFunction(obj);
} else {
f(obj);
await f(obj);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const _executeCase = async function (userCommand, commandName, f, isUserRequired

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserByEmail(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/diagnostics.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const _executeCase = async function (diagnosticCommand, commandName, f, isUserR

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserById(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const _executeCase = async function (flowCommand, commandName, f, isUserRequired

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserById(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/iofog.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ async function _executeCase(commands, commandName, f, isUserRequired) {

if (isUserRequired) {
const decoratedFunction = CliDecorator.prepareUserById(f);
decoratedFunction(obj);
await decoratedFunction(obj);
} else {
f(obj);
await f(obj);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/microservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ const _executeCase = async function (microserviceCommand, commandName, f, isUse

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserById(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ async function _executeCase(commands, commandName, f, isUserRequired) {

if (isUserRequired) {
const decoratedFunction = CliDecorator.prepareUserById(f);
decoratedFunction(obj);
await decoratedFunction(obj);
} else {
f(obj);
await f(obj);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ async function _executeCase(commands, commandName, f, isUserRequired) {

if (isUserRequired) {
const decoratedFunction = CliDecorator.prepareUserById(f);
decoratedFunction(obj);
await decoratedFunction(obj);
} else {
f(obj);
await f(obj);
}
} catch (error) {
logger.error(error.message);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ const _executeCase = async function (userCommand, commandName, f, isUserRequired

if (isUserRequired) {
const decoratedFunction = AuthDecorator.prepareUserByEmail(f);
decoratedFunction(item);
await decoratedFunction(item);
} else {
f(item);
await f(item);
}
} catch (error) {
logger.error(error.message);
Expand Down