Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
FACorreiaa committed Jun 17, 2024
1 parent b0c4875 commit d9c8f15
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/repository/airport.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *AirportRepository) getAirportData(ctx context.Context, query string,
}

func (r *AirportRepository) GetAirports(ctx context.Context,
page, pageSize int, orderBy string, sortBy string) ([]models.Airport, error) {
page, pageSize int, orderBy, sortBy string) ([]models.Airport, error) {
query := `SELECT id,
gmt,
airport_id,
Expand Down
2 changes: 1 addition & 1 deletion app/repository/locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func (r *LocationsRepository) GetCitySum(ctx context.Context) (int, error) {
}

func (r *LocationsRepository) GetCityByName(ctx context.Context, page, pageSize int,
name string, orderBy string, sortBy string) ([]models.City, error) {
name string, orderBy, sortBy string) ([]models.City, error) {
offset := (page - 1) * pageSize
query := `SELECT ct.id,
ct.city_name, ct.timezone, ct.gmt,
Expand Down
2 changes: 1 addition & 1 deletion app/services/airport.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func (h *Service) GetAirports(ctx context.Context,
page, pageSize int, orderBy string, sortBy string) ([]models.Airport, error) {
page, pageSize int, orderBy, sortBy string) ([]models.Airport, error) {

return h.airportRepo.GetAirports(ctx, page, pageSize, orderBy, sortBy)
}
Expand Down
2 changes: 1 addition & 1 deletion app/services/locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *Service) GetAllCities() (int, error) {
}

func (h *Service) GetCity(ctx context.Context, page, pageSize int,
orderBy string, sortBy string, cityName, currencyName, phonePrefix, gmt string) ([]models.City, error) {
orderBy, sortBy string, cityName, currencyName, phonePrefix, gmt string) ([]models.City, error) {

return h.locationRepo.GetCity(ctx, page, pageSize, orderBy, sortBy, cityName, currencyName, phonePrefix, gmt)
}
Expand Down

0 comments on commit d9c8f15

Please sign in to comment.