Skip to content

Commit

Permalink
Update samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui…
Browse files Browse the repository at this point in the history
…/listener/author/SavePublishedSettingsListener.java

Co-authored-by: Adrian Fish <[email protected]>
  • Loading branch information
jkjanetschek and adrianfish authored Sep 28, 2023
1 parent 55ce9e1 commit e81b412
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private void postUserNotification(PublishedAssessmentSettingsBean assessmentSett
Boolean flag = false;


if(!newStartDate.equals(oldStartDate)){
if (!newStartDate.equals(oldStartDate)) {
eventTrackingService.cancelDelays("siteId=" + AgentFacade.getCurrentSiteId() + ", assessmentId=" + assessment.getAssessmentId() + ", publishedAssessmentId=" + assessment.getPublishedAssessmentId(), SamigoConstants.EVENT_ASSESSMENT_AVAILABLE);
if (newStartDate.toInstant().isAfter(Instant.now())) {
eventTrackingService.delay(eventTrackingService.newEvent(SamigoConstants.EVENT_ASSESSMENT_AVAILABLE, "siteId=" + AgentFacade.getCurrentSiteId() + ", assessmentId=" + assessmentSettings.getAssessmentId() + ", publishedAssessmentId=" + assessment.getPublishedAssessmentId(), true), newStartDate.toInstant());
Expand Down

0 comments on commit e81b412

Please sign in to comment.