Skip to content

Commit

Permalink
Specify resource type in folder search API call
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Jun 18, 2024
1 parent 3a29f45 commit 20c6864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folders.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (client *Client) CreateFolder(ctx context.Context, name string) (*Folder, e

// GetFolderByTitle finds a folder, given its title.
func (client *Client) GetFolderByTitle(ctx context.Context, title string) (*Folder, error) {
resp, err := client.get(ctx, fmt.Sprintf("/api/search?query=%s", url.QueryEscape(title)))
resp, err := client.get(ctx, fmt.Sprintf("/api/search?type=dash-folder&query=%s", url.QueryEscape(title)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 20c6864

Please sign in to comment.