From b2494e0c2ff6360ee70ad211ab907a90c6388a18 Mon Sep 17 00:00:00 2001 From: Will O'Beirne Date: Wed, 30 Aug 2023 14:43:58 -0500 Subject: [PATCH] fix(gateway-ui): update connect param to invite_code --- apps/gateway-ui/src/GatewayApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/gateway-ui/src/GatewayApi.ts b/apps/gateway-ui/src/GatewayApi.ts index 5ba2563df..b98e26091 100644 --- a/apps/gateway-ui/src/GatewayApi.ts +++ b/apps/gateway-ui/src/GatewayApi.ts @@ -85,7 +85,7 @@ export class GatewayApi implements ApiInterface { } }; - connectFederation = async (connectInfo: string): Promise => { + connectFederation = async (inviteCode: string): Promise => { try { this.checkConfig(); const res: Response = await fetch(`${this.baseUrl}/connect-fed`, { @@ -95,7 +95,7 @@ export class GatewayApi implements ApiInterface { Authorization: `Bearer ${this.password}`, }, body: JSON.stringify({ - connect: connectInfo, + invite_code: inviteCode, }), });