Skip to content

Commit

Permalink
#65 some leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
setiadijoe committed Jul 5, 2021
1 parent 5ee077b commit 1bee6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoint/phonebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func MakeGetDetail(ctx context.Context, usecase usecase.Provider) endpoint.Endpo
Longitude: resp.Longitude,
CoverImagePath: fmt.Sprintf("%s/%s", cfg.AppStoragePublicURL, resp.CoverImagePath),
Status: resp.Status,
StatusLabel: GetStatusLabel[resp.Status]["ina"],
StatusLabel: GetStatusLabel[resp.Status]["id"],
CreatedAt: resp.CreatedAt,
UpdatedAt: resp.UpdatedAt,
}, nil
Expand Down
2 changes: 1 addition & 1 deletion endpoint/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func EncodePhonebook(data []*model.Phonebook) []*Phonebook {
Latitude: v.Latitude,
Longitude: v.Longitude,
Status: v.Status,
StatusLabel: GetStatusLabel[v.Status]["ina"],
StatusLabel: GetStatusLabel[v.Status]["id"],
Category: v.Category,
Distance: v.Distance,
}
Expand Down

0 comments on commit 1bee6fc

Please sign in to comment.