diff --git a/api/lib/connection-pool.ts b/api/lib/connection-pool.ts index a9f3086ca..8312ab9ad 100644 --- a/api/lib/connection-pool.ts +++ b/api/lib/connection-pool.ts @@ -171,7 +171,11 @@ export default class ConnectionPool extends Map { for (const sub of await connConfig.subscriptions()) { try { - await api.Mission.subscribe(sub.name, { uid: String(connConfig.id) }); + await api.Mission.subscribe(sub.name, { + uid: String(connConfig.id) + },{ + token: sub.token + }); console.log(`Connection: ${connConfig.id} - Sync: ${sub.name}: Subscribed!`); } catch (err) { console.warn(`Connection: ${connConfig.id} - Sync: ${sub.name}: ${err.message}`);