mirror of
https://github.com/samsonjs/stormy-weather.git
synced 2026-03-25 09:15:57 +00:00
fix a bug when updating indexed fields
This commit is contained in:
parent
4c1f662919
commit
02cc484372
2 changed files with 2 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ module Stormy
|
|||
fields = params.merge({
|
||||
'email_verified' => email_changed ? true : @account.email_verified
|
||||
})
|
||||
# TODO slice valid field names instead of removing the outliers
|
||||
fields.delete('splat')
|
||||
fields.delete('captures')
|
||||
fields.delete('email')
|
||||
|
|
|
|||
|
|
@ -631,7 +631,7 @@ module Stormy
|
|||
end
|
||||
|
||||
def update_indexed_field(name, value)
|
||||
value = value.strip
|
||||
value = value.to_s.strip
|
||||
orig = send(name)
|
||||
if orig != value
|
||||
changed = orig.downcase != value.downcase
|
||||
|
|
|
|||
Loading…
Reference in a new issue