Allow enabled to be specified optionally in config

Signed-off-by: Rhea Danzey <rdanzey@element.io>
This commit is contained in:
Rhea Danzey 2023-06-08 14:47:51 -05:00
parent 78ce7754fd
commit 49d0556c8a
No known key found for this signature in database
GPG Key ID: BC69166FB2668680
3 changed files with 6 additions and 6 deletions

View File

@ -393,7 +393,7 @@ interface BridgeConfigWebhook {
}
export interface BridgeConfigQueue {
enabled: boolean;
enabled?: boolean;
monolithic: boolean;
port?: number;
host?: string;

View File

@ -34,7 +34,7 @@ const GITHUB_ISSUE_CREATED_PAYLOAD = {
}
};
function createConnection(state: Record<string, unknown> = {}, isExistingState=false) {
function createConnection(state: Record<string, unknown> = {}, isExistingState = false) {
const mq = createMessageQueue({
monolithic: true
});
@ -58,7 +58,7 @@ function createConnection(state: Record<string, unknown> = {}, isExistingState=f
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
DefaultConfig.github!
);
return {connection, intent};
return { connection, intent };
}
describe("GitHubRepoConnection", () => {

View File

@ -21,7 +21,7 @@ const GITLAB_MR = {
};
const GITLAB_ISSUE_CREATED_PAYLOAD = {
object_kind: "merge_request",
object_kind: "merge_request",
user: {
name: "Alice",
username: "alice",
@ -33,7 +33,7 @@ const GITLAB_ISSUE_CREATED_PAYLOAD = {
}
};
function createConnection(state: Record<string, unknown> = {}, isExistingState=false) {
function createConnection(state: Record<string, unknown> = {}, isExistingState = false) {
const mq = createMessageQueue({
monolithic: true
});
@ -56,7 +56,7 @@ function createConnection(state: Record<string, unknown> = {}, isExistingState=f
url: "https://gitlab.example.com"
},
);
return {connection, intent};
return { connection, intent };
}
describe("GitLabRepoConnection", () => {