Revert to fetching MQTT credentials from the shared integration

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-29 07:50:33 +00:00
parent 251c3ead59
commit bf538df2d9

View file

@ -21,7 +21,7 @@ let prefixMap = [] // [{ prefix, assetId }], longest prefix first so overlapping
let subscribedTopics = new Set()
async function getCredentials() {
const url = `${process.env.SETTINGS_URL}/settings/api/internal/integration/mqtt_plant`
const url = `${process.env.SETTINGS_URL}/settings/api/internal/integration/mqtt`
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.SETTINGS_SECRET}` },
signal: AbortSignal.timeout(5000),