Skip to content

Commit

Permalink
Update PublishingSiteScheduleServiceImpl.java tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored Feb 12, 2024
1 parent a6bd731 commit ed3e9a9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ 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);
} catch (IdUnusedException | PermissionException i){
log.error("Unable to schedule publishing for site: " + siteId);
} finally {
if (session != null) {
session.clear();
session.clear();
}
}
}
Expand Down

0 comments on commit ed3e9a9

Please sign in to comment.