Skip to content

Commit

Permalink
remove fields
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed Oct 2, 2023
1 parent f884867 commit 0883bab
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class BitbucketRepositoryProvider implements RepositoryProvider {
public async searchRepos(user: User, searchString: string): Promise<RepositoryInfo[]> {
const api = await this.apiFactory.create(user);

const workspaces = await api.workspaces.getWorkspaces({ fields: "workspace.slug" });
const workspaces = await api.workspaces.getWorkspaces({});

const workspaceSlugs: string[] = (
workspaces.data.values?.map((w) => {
Expand All @@ -181,8 +181,6 @@ export class BitbucketRepositoryProvider implements RepositoryProvider {
// Array of promises searching for repos in each workspace
const workspaceSearches = workspaceSlugs.map((workspaceSlug) => {
return api.repositories.list({
// limit to just the fields we need
fields: "name,links.html.href",
workspace: workspaceSlug,
// name includes searchString
q: `name ~ "${searchString}"`,
Expand Down

0 comments on commit 0883bab

Please sign in to comment.