refactors storing of failed attempt [#277]
This commit is contained in:
@@ -48,13 +48,13 @@ class Verification::Residence
|
||||
end
|
||||
|
||||
def store_failed_attempt
|
||||
data = { user: user,
|
||||
document_number: document_number,
|
||||
document_type: document_type,
|
||||
date_of_birth: date_of_birth,
|
||||
postal_code: postal_code }
|
||||
|
||||
FailedCensusCall.create(data)
|
||||
FailedCensusCall.create({
|
||||
user: user,
|
||||
document_number: document_number,
|
||||
document_type: document_type,
|
||||
date_of_birth: date_of_birth,
|
||||
postal_code: postal_code
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user