Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: buscar coordenadas do abrigo #87

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Commits on May 12, 2024

  1. Configuration menu
    Copy the full SHA
    13d2cea View commit details
    Browse the repository at this point in the history
  2. Finish interaction with Google Maps API

    - Finish interaction with Google Maps API through
    src/googleMaps/mapsApi.ts.
    
    - Now retrieving Shelter coordinates from Google Maps API everytime a
      new shelter is created or a already existent shelter is updated by
      admin.
    
    - If API fetch is not working, it does not break the creation or update
      features.
    
    - Loading Maps API key from .env file.
    
    - Update env.example: Create MAPS_API_URL and MAPS_API_KEY variables.
    wOL-Lucas committed May 12, 2024
    Configuration menu
    Copy the full SHA
    353d616 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Fix: move fetch shelter coords to shelter service

    Move the concern of retrieving the shelter coords from api and updating
    payload, from controller to shelter.service
    wOL-Lucas committed May 13, 2024
    Configuration menu
    Copy the full SHA
    379a398 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aab3cc2 View commit details
    Browse the repository at this point in the history
  3. refactor: Move update coordinates logic to private method

    This commit refactors the shelter service by moving the logic for updating coordinates into a private method.
    This eliminates repetitive code in both the store and fullUpdate methods.
    wOL-Lucas committed May 13, 2024
    Configuration menu
    Copy the full SHA
    05404e4 View commit details
    Browse the repository at this point in the history