mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 02:13:26 -05:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user