Skip to content

Commit

Permalink
Merge pull request #166 from FlowFuse/await-mqtt-agent-status
Browse files Browse the repository at this point in the history
Fix await when polling mqtt-schema-agent status
  • Loading branch information
knolleary authored Feb 12, 2025
2 parents c21617b + c770824 commit a1aec51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ module.exports = {
},
getBrokerAgentState: async (broker) => {
try {
const status = got.get(`http://localhost:${broker.settings.port}/api/v1/status`).json()
const status = await got.get(`http://localhost:${broker.settings.port}/api/v1/status`).json()
return status
} catch (err) {
return { error: 'error_getting_status', message: err.toString() }
Expand Down

0 comments on commit a1aec51

Please sign in to comment.