Skip to content

Commit

Permalink
Fixed missing await's
Browse files Browse the repository at this point in the history
  • Loading branch information
rexwhite committed Jan 17, 2024
1 parent 77038c8 commit 7f52cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/remediations/controller.fifi_2.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ exports.connection_status = errors.async(async function (req, res) {
};

log.error(`connection status request: ${JSON.stringify(connectionStatusRequest)}`);
const recipients = dispatcher.getConnectionStatus(connectionStatusRequest);
const recipients = await dispatcher.getConnectionStatus(connectionStatusRequest);
log.error(`connection status requested status for ${systemIds.length} hosts, received: ${JSON.stringify(recipients)}`);

//-----------------
Expand Down Expand Up @@ -129,7 +129,7 @@ exports.executePlaybookRuns = errors.async(async function (req, res) {
hosts: systemIds
};

const recipients = dispatcher.getConnectionStatus(connectionStatusRequest);
const recipients = await dispatcher.getConnectionStatus(connectionStatusRequest);
log.error(`Requested status for ${connectionStatusRequest.hosts.length} hosts, received: ${JSON.stringify(recipients)}`);

//-----------------
Expand Down

0 comments on commit 7f52cae

Please sign in to comment.