From aa81dadfa8c52e230df3be56da80b639aa948e1d Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Thu, 28 Dec 2023 14:33:48 +0100
Subject: [PATCH] debug

---
 app/models/communication/website/agenda/event/with_cal.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/models/communication/website/agenda/event/with_cal.rb b/app/models/communication/website/agenda/event/with_cal.rb
index 450d395dc..a1cbc2c6f 100644
--- a/app/models/communication/website/agenda/event/with_cal.rb
+++ b/app/models/communication/website/agenda/event/with_cal.rb
@@ -2,6 +2,7 @@ module Communication::Website::Agenda::Event::WithCal
   extend ActiveSupport::Concern
 
   def cal
+    raise "Event '#{id}' in website '#{website}' in university '#{university}' has same from start and end" if cal_from_time == cal_to_time
     @cal ||= AddToCalendar::URLs.new(
       start_datetime: cal_from_time, 
       end_datetime: cal_to_time,
-- 
GitLab