FEATURE: change delete expired post events to default false (#134)

FEATURE: change delete expired post events to default false (#134)

More people seem to want to keep stuff around, less stuff to explain

diff --git a/config/settings.yml b/config/settings.yml
index 3fa092a..9ccecc5 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -7,7 +7,7 @@ discourse_calendar:
     client: true
   delete_expired_event_posts_after:
     min: -1
-    default: 1
+    default: -1
   all_day_event_start_time:
     default: ""
     client: true
diff --git a/spec/jobs/scheduled/destroy_past_events_spec.rb b/spec/jobs/scheduled/destroy_past_events_spec.rb
index 174b07b..ee994c7 100644
--- a/spec/jobs/scheduled/destroy_past_events_spec.rb
+++ b/spec/jobs/scheduled/destroy_past_events_spec.rb
@@ -9,6 +9,7 @@ describe DiscourseCalendar::DestroyPastEvents do
   before do
     Jobs.run_immediately!
     SiteSetting.calendar_enabled = true
+    SiteSetting.delete_expired_event_posts_after = 1
   end
 
   it "will correctly destroy the post" do

GitHub sha: 7b654bc1

1 Like

This commit appears in #134 which was approved by tgxworld. It was merged by SamSaffron.