From e81b412a60429f9ac821c4abeffeb2cea6d3cbc1 Mon Sep 17 00:00:00 2001 From: JulianJanetschek <54806745+jkjanetschek@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:59:25 +0200 Subject: [PATCH] Update samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java Co-authored-by: Adrian Fish --- .../ui/listener/author/SavePublishedSettingsListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java index 1c8f1aba9ec9..5331d690edbf 100644 --- a/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java +++ b/samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/SavePublishedSettingsListener.java @@ -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());