Skip to content

Commit

Permalink
Merge pull request #2099 from navikt/TOLK-2619
Browse files Browse the repository at this point in the history
TOLK-2619 : Sorterer bort bildetolkvakter for å unngå future on future feilmelding
  • Loading branch information
olsenrasmus authored Oct 21, 2024
2 parents 28f48dc + c331b1f commit b39f770
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public without sharing class HOT_ServiceAppointmentAccessHandler extends MyTrigg

for (ServiceAppointment sa : (List<ServiceAppointment>) records) {
ServiceAppointment oldRecord = (ServiceAppointment) triggerOldMap.get(sa.Id);
if (sa.Status != oldRecord.Status && sa.Status == 'Dispatched') {
if (sa.Status != oldRecord.Status && sa.Status == 'Dispatched' && !system.isBatch()) {
serviceAppointmentsWithUpdatedStatusDispatched.add(sa.Id);
}
}
Expand Down

0 comments on commit b39f770

Please sign in to comment.