adds hotfix for invalid census api response
This commit is contained in:
@@ -42,6 +42,8 @@ class CensusApi
|
|||||||
end
|
end
|
||||||
|
|
||||||
def valid?
|
def valid?
|
||||||
|
return false unless data[:datos_habitante][:item].present?
|
||||||
|
|
||||||
citizen.date_of_birth == date_of_birth &&
|
citizen.date_of_birth == date_of_birth &&
|
||||||
citizen.postal_code == postal_code
|
citizen.postal_code == postal_code
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user