Skip to content

Commit 5191907

Browse files
authored
Added a "/" at the beginning of the path for tags on fixed dbs (#181)
1 parent 61a6fa9 commit 5191907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/tags/service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (a *API) Get(ctx context.Context, subscription int, database int) (*AllTags
3333

3434
func (a *API) GetFixed(ctx context.Context, subscription int, database int) (*AllTags, error) {
3535
message := fmt.Sprintf("get tags for fixed database %d in subscription %d", subscription, database)
36-
address := fmt.Sprintf("fixed/subscriptions/%d/databases/%d/tags", subscription, database)
36+
address := fmt.Sprintf("/fixed/subscriptions/%d/databases/%d/tags", subscription, database)
3737
tags, err := a.get(ctx, message, address)
3838
if err != nil {
3939
return nil, wrap404Error(subscription, database, err)
@@ -53,7 +53,7 @@ func (a *API) Put(ctx context.Context, subscription int, database int, tags AllT
5353

5454
func (a *API) PutFixed(ctx context.Context, subscription int, database int, tags AllTags) error {
5555
message := fmt.Sprintf("update tags for fixed database %d in subscription %d", subscription, database)
56-
address := fmt.Sprintf("fixed/subscriptions/%d/databases/%d/tags", subscription, database)
56+
address := fmt.Sprintf("/fixed/subscriptions/%d/databases/%d/tags", subscription, database)
5757
err := a.put(ctx, message, address, tags)
5858
if err != nil {
5959
return wrap404Error(subscription, database, err)

0 commit comments

Comments
 (0)