Commit 0a6998d5 authored by Ruben Davila's avatar Ruben Davila
parent f587c730
......@@ -18,7 +18,7 @@ module SpamCheckService
spam_service = SpamService.new(spammable, @request)
spam_service.when_recaptcha_verified(@recaptcha_verified, @api) do
user.spam_logs.find_by(id: @spam_log_id)&.update!(recaptcha_verified: true)
user.spam_logs.find_by(id: @spam_log_id).try(:update!, recaptcha_verified: true)
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment