Fix: NGワード履歴重複チェックのクエリミス (#570)
This commit is contained in:
parent
b2fae3ca84
commit
2b078b83c0
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class Admin::NgWord
|
||||||
return unless options[:uri] && options[:target_type]
|
return unless options[:uri] && options[:target_type]
|
||||||
return if options.key?(:public) && !options.delete(:public)
|
return if options.key?(:public) && !options.delete(:public)
|
||||||
|
|
||||||
return if NgwordHistory.where('created_at > ?', 1.day.ago).exists?(uri: options[:uri], keyword: options[:keyword])
|
return if NgwordHistory.where('created_at > ?', 1.day.ago).exists?(uri: options[:uri], keyword: keyword)
|
||||||
|
|
||||||
NgwordHistory.create(options.merge({
|
NgwordHistory.create(options.merge({
|
||||||
reason: type,
|
reason: type,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue