Skip to content

Commit

Permalink
fix(service.url): select deleted field
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Oct 4, 2020
1 parent 1d38256 commit 84bdc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/url/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func ListUrlsFilteredFromRequest(req *http.Request) ([]model.Url, error) {
func ListUrlsFiltered(filter request.UrlFilter) ([]model.Url, error) {
var urls []model.Url

limit, conn := 50, orm.Connection().Select("short_code, origin_url, hits, expires_on")
limit, conn := 50, orm.Connection().Select("short_code, origin_url, hits, deleted, expires_on")
if filter.ShortCode != "" {
limit = 1
conn = conn.Where("short_code = ?", filter.ShortCode)
Expand Down

0 comments on commit 84bdc5d

Please sign in to comment.