Skip to content

Commit

Permalink
formated adres point
Browse files Browse the repository at this point in the history
  • Loading branch information
vovangy committed May 4, 2024
1 parent 99a9e19 commit 235b7cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/pkg/adverts/repo/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (r *AdvertRepo) GetHouseAdvertById(ctx context.Context, id int64) (*models.
s.name,
t.name,
p.name,
ad.address_point,
ST_AsText(ad.address_point::geometry),
h.ceiling_height,
h.square_area,
h.square_house,
Expand Down Expand Up @@ -917,7 +917,7 @@ func (r *AdvertRepo) GetFlatAdvertById(ctx context.Context, id int64) (*models.A
s.name,
t.name,
p.name,
ad.address_point,
ST_AsText(ad.address_point::geometry),
f.floor,
f.ceiling_height,
f.square_general,
Expand Down Expand Up @@ -1231,7 +1231,7 @@ func (r *AdvertRepo) GetRectangleAdverts(ctx context.Context, advertFilter model
SELECT
f.square_general,
f.floor,
ad.address_point,
ST_AsText(ad.address_point::geometry),
ad.metro,
hn.name,
s.name,
Expand All @@ -1253,7 +1253,7 @@ func (r *AdvertRepo) GetRectangleAdverts(ctx context.Context, advertFilter model
a.created_at DESC;`
queryHouse := `
SELECT
ad.address_point,
ST_AsText(ad.address_point::geometry),
ad.metro,
hn.name,
s.name,
Expand Down

0 comments on commit 235b7cb

Please sign in to comment.