This commit is contained in:
Asim Aslam
2021-12-11 20:52:48 +00:00
parent 4bb61996c9
commit d456ff28e1
3 changed files with 28 additions and 29 deletions

View File

@@ -83,7 +83,6 @@ func (e *Url) List(ctx context.Context, req *url.ListRequest, rsp *url.ListRespo
return errors.Unauthorized("url.shorten", "not authorized")
}
rsp.Urls = []*url.URLPair{}
var err error
key := "urlOwner/" + tenantId + "/"
@@ -109,7 +108,7 @@ func (e *Url) List(ctx context.Context, req *url.ListRequest, rsp *url.ListRespo
continue
}
rsp.Urls = append(rsp.Urls, uri)
rsp.UrlPairs = append(rsp.UrlPairs, uri)
}
return nil