Skip to content

Commit

Permalink
fix(client): 🐛 Use correct HTTP path for account lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Dec 2, 2024
1 parent 338c2cf commit d69f8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/versia/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1972,9 +1972,9 @@ export class Client extends BaseClient {
): Promise<Output<Account>> {
const params = new URLSearchParams();

params.set("q", acct);
params.set("acct", acct);

return this.get<Account>(`/api/v1/accounts/search?${params}`, extra);
return this.get<Account>(`/api/v1/accounts/lookup?${params}`, extra);
}

/**
Expand Down

0 comments on commit d69f8f5

Please sign in to comment.