Skip to content

Commit

Permalink
Update postal_codes.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrique199413 committed Feb 1, 2023
1 parent faac886 commit 2e50b22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions presenters/postal_codes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ def self.shared_data(code)

def self.prepare_locations_json(locations, code, shared_data)
{ 'error' => false,
'data' => { 'codigo_postal' => code,
'municipio' => shared_data[0],
'estado' => shared_data[1],
'colonias' => locations }}
'data' => {
'codigo_postal' => code,
'municipio' => shared_data[0],
'estado' => shared_data[1],
'colonias' => locations }
}
end

def self.prepare_postal_codes_json(codes)
Expand Down

0 comments on commit 2e50b22

Please sign in to comment.