fix(client): 🐛 Use correct HTTP path for account lookups

This commit is contained in:
Jesse Wierzbinski 2024-12-02 13:01:31 +01:00
parent 338c2cf6e7
commit d69f8f5412
No known key found for this signature in database

View file

@ -1972,9 +1972,9 @@ export class Client extends BaseClient {
): Promise<Output<Account>> { ): Promise<Output<Account>> {
const params = new URLSearchParams(); 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);
} }
/** /**