Skip to content

Commit

Permalink
don't show url_hash in json
Browse files Browse the repository at this point in the history
  • Loading branch information
alexferl committed Nov 19, 2018
1 parent b5149dc commit 6f054a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type UrlMapping struct {
ShortUrl string `json:"short_url" bson:"short_url"`
UniqueViews uint64 `json:"unique_views" bson:"unique_views"`
Url string `json:"url" bson:"url"`
UrlHash [32]byte `json:"url_hash" bson:"url_hash"`
UrlHash [32]byte `json:"-" bson:"url_hash"`
Views uint64 `json:"views" bson:"views"`
Meta `bson:"-"`
}
Expand Down

0 comments on commit 6f054a2

Please sign in to comment.