Skip to content

Commit c01d13b

Browse files
committed
Fix jira config bug
1 parent 2a1158e commit c01d13b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

spec/jira.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ describe('JIRA', () => {
106106
}, E2ESetupTestTimeout);
107107

108108
afterAll(() => {
109-
console.log('tear down');
110109
return testEnv?.tearDown();
111110
});
112111

@@ -156,6 +155,5 @@ describe('JIRA', () => {
156155
// And await the notice.
157156
const { body } = (await webhookNotice).data.content;
158157
expect(body).toContain('Test User created a new JIRA issue [TP-8](https://example.org/browse/TP-8): "Test issue"');
159-
console.log("Test over");
160-
}, { timeout: 20000 });
158+
});
161159
});

src/Connections/JiraProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class JiraProjectConnection extends CommandConnection<JiraProjectConnecti
529529

530530
public async provisionerUpdateConfig(userId: string, config: Record<string, unknown>) {
531531
// Apply previous state to the current config, as provisioners might not return "unknown" keys.
532-
config = { ...config, ...this.state };
532+
config = { ...this.state, ...config };
533533
const validatedConfig = validateJiraConnectionState(config);
534534
if (!validatedConfig.id) {
535535
await this.updateProjectId(validatedConfig, userId);

0 commit comments

Comments
 (0)