From ed3e9a919515fc8ff1fd9206c4a93106c4b89932 Mon Sep 17 00:00:00 2001 From: Sam Ottenhoff Date: Mon, 12 Feb 2024 17:13:26 -0500 Subject: [PATCH] Update PublishingSiteScheduleServiceImpl.java tabs --- .../impl/PublishingSiteScheduleServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/site-manage/site-manage-impl/impl/src/java/org/sakaiproject/sitemanage/impl/PublishingSiteScheduleServiceImpl.java b/site-manage/site-manage-impl/impl/src/java/org/sakaiproject/sitemanage/impl/PublishingSiteScheduleServiceImpl.java index be08199cead7..9cf0de4ba186 100644 --- a/site-manage/site-manage-impl/impl/src/java/org/sakaiproject/sitemanage/impl/PublishingSiteScheduleServiceImpl.java +++ b/site-manage/site-manage-impl/impl/src/java/org/sakaiproject/sitemanage/impl/PublishingSiteScheduleServiceImpl.java @@ -51,12 +51,12 @@ public void removeScheduledPublish(String siteId){ public void execute(String siteId){ Session session = null; try{ - session = sessionManager.getCurrentSession(); - session.setUserEid("admin"); - session.setUserId("admin"); + session = sessionManager.getCurrentSession(); + session.setUserEid("admin"); + session.setUserId("admin"); Site gettingPublished = siteService.getSite(siteId); if (!gettingPublished.isPublished()) { - eventTrackingService.post(eventTrackingService.newEvent(siteService.EVENT_SITE_PUBLISH, gettingPublished.getReference(), true)); + eventTrackingService.post(eventTrackingService.newEvent(siteService.EVENT_SITE_PUBLISH, gettingPublished.getReference(), true)); } gettingPublished.setPublished(true); siteService.save(gettingPublished); @@ -64,7 +64,7 @@ public void execute(String siteId){ log.error("Unable to schedule publishing for site: " + siteId); } finally { if (session != null) { - session.clear(); + session.clear(); } } }