From 121fdbb51bd94e6ea1608689f781f15d4ba6cf8f Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 2 Aug 2022 22:17:35 +0800 Subject: [PATCH] Fix bug. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 443fc97..0862784 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,7 +35,7 @@ Rails.application.routes.draw do puts "Calendar fix!" end if need_update2 - Event.where(:recurring=>true).each do |e| + Event.where(:all_day=>true).each do |e| if e.end == e.start + 1.day e.end = e.start e.save