Skip to content

Commit 98d10fa

Browse files
committed
update updated_at in bulk_update
1 parent 64fea5e commit 98d10fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/trained_messages_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def bulk_update
8686
return
8787
end
8888

89-
messages.update_all(message_type: new_message_type_symbol)
89+
messages.update_all(message_type: new_message_type_symbol, updated_at: Time.current)
9090

9191
messages.each do |message|
9292
if message.spam? || message.ham?

0 commit comments

Comments
 (0)