Skip to content

Commit

Permalink
feat: mirror check adds governance mirrors if non-governance instance
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Oct 30, 2024
1 parent 7213449 commit 7fac2c7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/tasks/mirror-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,17 @@ const runMirrorCheck = async () => {
GOVERNANCE_CONFIG.GOVERNANCE_BODY_ID,
);

// add governance mirrors if non-governance instance
await Organization.addMirror(
GOVERNANCE_CONFIG.GOVERNANCE_BODY_ID,
mirrorUrl,
true,
);
await Organization.addMirror(governanceStoreValue, mirrorUrl, true);
if (governanceStoreValue?.v1) {
// add governance mirrors if non-governance instance
await Organization.addMirror(
GOVERNANCE_CONFIG.GOVERNANCE_BODY_ID,
mirrorUrl,
true,
);
await Organization.addMirror(governanceStoreValue, mirrorUrl, true);
} else {
logger.warn('error adding governance mirrors');
}
}

const organizations = await Organization.getOrgsMap();
Expand Down

0 comments on commit 7fac2c7

Please sign in to comment.