Skip to content

Commit

Permalink
VetAssignmentAndCacheFalsePositives
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 28, 2024
1 parent 07b780c commit 081ca38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions onprc_ehr/resources/queries/onprc_ehr/vet_assignment.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
require("ehr/triggers").initScript(this);

var triggerHelper = new org.labkey.onprc_ehr.query.ONPRC_EHRTriggerHelper(LABKEY.Security.currentUser.id, LABKEY.Security.currentContainer.id);
var console = require("console");

EHR.Server.TriggerManager.registerHandlerForQuery(EHR.Server.TriggerManager.Events.COMPLETE, 'onprc_ehr', 'vet_assignment', function(event, helper){
console.log('Complete is called!');
// NOTE: the rules behind vet assignment are complicated enough that any change to one row here could
// impact a lot of records. Therefore, just redo everything in the cache
triggerHelper.recalculateAllVetAssignmentRecords()
Expand Down

0 comments on commit 081ca38

Please sign in to comment.