Skip to content

Commit

Permalink
server: skip repository refresh when repo is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
benbroadaway committed Feb 9, 2024
1 parent 04bbe85 commit 8e0e21b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ private InsertUpdateResult insertOrUpdate(DSLContext tx, UUID projectId, UUID re
entry.isTriggersDisabled());
}

repositoryRefresher.refresh(tx, projectId, entry.getName(), processDefinition);
if (!entry.isDisabled()) {
repositoryRefresher.refresh(tx, projectId, entry.getName(), processDefinition);
}

return ImmutableInsertUpdateResult.builder()
.prevEntry(prevEntry)
Expand Down

0 comments on commit 8e0e21b

Please sign in to comment.