Skip to content

Commit c377fef

Browse files
axosoft-raminteamodio
authored andcommitted
Flushes old Jira global storage entries on connect
1 parent ef9c114 commit c377fef

File tree

1 file changed

+2
-0
lines changed
  • src/plus/integrations/providers

1 file changed

+2
-0
lines changed

src/plus/integrations/providers/jira.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ export class JiraIntegration extends IssueIntegration<IssueIntegrationId.Jira> {
304304

305305
if (storedOrganizations == null) {
306306
organizations = await this.getProviderResourcesForUser(this._session, true);
307+
// Clear all other stored organizations and projects when our session changes
308+
await this.container.storage.deleteWithPrefix('jira');
307309
await this.container.storage.store(`jira:${this._session.accessToken}:organizations`, {
308310
v: 1,
309311
timestamp: Date.now(),

0 commit comments

Comments
 (0)