Update Latitude Longitude
This commit is contained in:
@@ -287,8 +287,8 @@ func (h *Handler) toSiteResponse(resp *entity.Site) response.Site {
|
||||
CreatedAt: resp.CreatedAt.Format(time.RFC3339),
|
||||
UpdatedAt: resp.UpdatedAt.Format(time.RFC3339),
|
||||
Products: h.toProductResponseList(resp.Products),
|
||||
Lat: resp.Lat,
|
||||
Long: resp.Long,
|
||||
Lat: *resp.Latitude,
|
||||
Long: *resp.Longitude,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ func (r *Site) ToEntity(createdBy int64) *entity.Site {
|
||||
Products: products,
|
||||
Region: r.Region,
|
||||
Regency: r.Regency,
|
||||
Lat: r.Lat,
|
||||
Long: r.Long,
|
||||
Latitude: &r.Lat,
|
||||
Longitude: &r.Long,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user