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/RepublishAssessmentListener.java

Co-authored-by: Adrian Fish <[email protected]>
  • Loading branch information
jkjanetschek and adrianfish authored Sep 28, 2023
1 parent 8186b7d commit 59b6b64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private void postUserNotification(PublishedAssessmentFacade assessment, Publishe
Instant startInstant = exTime.getStartDate().toInstant();
if(startInstant.isBefore(Instant.now())) {
eventTrackingService.post(eventTrackingService.newEvent(SamigoConstants.EVENT_ASSESSMENT_UPDATE_AVAILABLE, "siteId=" + AgentFacade.getCurrentSiteId() + ", assessmentId=" + assessment.getAssessmentId() + ", publishedAssessmentId=" + assessment.getPublishedAssessmentId(), true));
}else if(startInstant.isAfter(Instant.now()) && !instant.equals(startInstant)){
} else if(startInstant.isAfter(Instant.now()) && !instant.equals(startInstant)) {
eventTrackingService.delay(eventTrackingService.newEvent(SamigoConstants.EVENT_ASSESSMENT_AVAILABLE, "siteId=" + AgentFacade.getCurrentSiteId() + ", assessmentId=" + assessment.getAssessmentId() + ", publishedAssessmentId=" + assessment.getPublishedAssessmentId(), true), startInstant);
}
}
Expand Down

0 comments on commit 59b6b64

Please sign in to comment.