Fix getUserByKey endpoint

This commit is contained in:
Guilherme Werner
2024-01-15 14:04:11 -03:00
parent 5a580af4e5
commit d84e903c34
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "tribufu",
"version": "0.1.10",
"version": "0.1.11",
"description": "Tribufu JS SDK",
"repository": "https://github.com/Tribufu/TribufuJs",
"author": "Tribufu <contact@Tribufu.com>",

View File

@ -351,7 +351,7 @@ export class TribufuApi {
*/
private async getUserByKey(key: string, value: string): Promise<any[]> {
const headers = this.getHeaders();
const responseBody = await this.http.get<any[]>(`/v1/users/?${key}=${value}`, headers);
const responseBody = await this.http.get<any[]>(`/v1/users?${key}=${value}`, headers);
if (!responseBody) {
return [];