mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Minor cleanup
This commit is contained in:
parent
bea3850c94
commit
dd7b6a54f0
@ -2,12 +2,7 @@ import { Context, DELETE, GET, Path, PathParam, POST, Security, ServiceContext }
|
||||
import { ApiError } from "../ApiError";
|
||||
import { LogService } from "matrix-bot-sdk";
|
||||
import { ROLE_USER } from "../security/MatrixSecurity";
|
||||
import {
|
||||
HookshotGithubAuthUrls,
|
||||
HookshotGithubOrg,
|
||||
HookshotGithubRepo,
|
||||
HookshotGithubRoomConfig
|
||||
} from "../../bridges/models/hookshot";
|
||||
import { HookshotGithubAuthUrls, HookshotGithubRepo, HookshotGithubRoomConfig } from "../../bridges/models/hookshot";
|
||||
import { HookshotGithubBridge } from "../../bridges/HookshotGithubBridge";
|
||||
|
||||
interface BridgeRoomRequest {
|
||||
@ -32,8 +27,7 @@ export class DimensionHookshotGithubService {
|
||||
|
||||
try {
|
||||
const hookshot = new HookshotGithubBridge(userId);
|
||||
const authUrls = await hookshot.getAuthUrls();
|
||||
return authUrls;
|
||||
return await hookshot.getAuthUrls();
|
||||
} catch (e) {
|
||||
LogService.error("DimensionHookshotGithubService", e);
|
||||
throw new ApiError(400, "Error getting auth info");
|
||||
|
Loading…
Reference in New Issue
Block a user