Actually send github bridge info

This commit is contained in:
Travis Ralston 2021-12-06 15:43:17 -07:00
parent ae320babb4
commit 9ab6c8f3f2
2 changed files with 4 additions and 3 deletions

View File

@ -127,7 +127,7 @@ export class HookshotGithubBridgeConfigComponent extends BridgeComponent<Hooksho
} }
} }
this.hookshot.bridgeRoom(this.roomId).then(conn => { this.hookshot.bridgeRoom(this.roomId, this.orgId, this.repoId).then(conn => {
this.bridge.config.connections.push(conn); this.bridge.config.connections.push(conn);
this.isBusy = false; this.isBusy = false;
this.translate.get('Bridge requested').subscribe((res: string) => { this.translate.get('Bridge requested').subscribe((res: string) => {

View File

@ -14,9 +14,10 @@ export class HookshotGithubApiService extends AuthedApi {
super(http); super(http);
} }
public bridgeRoom(roomId: string): Promise<FE_HookshotGithubConnection> { public bridgeRoom(roomId: string, orgId: string, repoId: string): Promise<FE_HookshotGithubConnection> {
return this.authedPost<FE_HookshotGithubConnection>("/api/v1/dimension/hookshot/github/room/" + roomId + "/connect", { return this.authedPost<FE_HookshotGithubConnection>("/api/v1/dimension/hookshot/github/room/" + roomId + "/connect", {
// TODO orgId,
repoId,
}).toPromise(); }).toPromise();
} }