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
This commit is contained in:
Martin Brennan 2021-03-15 15:10:40 +10:00 committed by GitHub
parent 7970d1d99f
commit 139a547f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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,