From 139a547f22f070d260c2549b6f3929d994fa586d Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Mon, 15 Mar 2021 15:10:40 +1000 Subject: [PATCH] DEV: Change Bookmark.clear_reminder! update to update! (#12398) * Change update to update! for bookmark clear_reminder! This way the update will not fail silently --- app/models/bookmark.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bookmark.rb b/app/models/bookmark.rb index f6bdb12a629..26e63f12bd4 100644 --- a/app/models/bookmark.rb +++ b/app/models/bookmark.rb @@ -86,7 +86,7 @@ class Bookmark < ActiveRecord::Base end def clear_reminder! - update( + update!( reminder_at: nil, reminder_type: nil, reminder_last_sent_at: Time.zone.now,