Skip to content

Commit

Permalink
fix: sync remaining bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Feb 9, 2024
1 parent fc4ccb5 commit 192a9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/sync-registries.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const syncOrganizationAudit = async (organization) => {

const rootHistoryCount = rootHistory.length;
const syncRemaining = rootHistoryCount - historyIndex;
const isSynced = syncRemaining === 0;
const isSynced = Boolean(rootHistory?.[historyIndex + 1]) === false;

await Organization.update(
{
Expand Down

0 comments on commit 192a9e5

Please sign in to comment.