Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a "/" at the beginning of the path for tags on fixed dbs #181

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions service/tags/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (a *API) Get(ctx context.Context, subscription int, database int) (*AllTags

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

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