mirror of
https://github.com/tribufu/tribufu-js
synced 2026-05-06 06:47:27 +00:00
Fix getUserByKey endpoint
This commit is contained in:
parent
5a580af4e5
commit
d84e903c34
2 changed files with 2 additions and 2 deletions
|
|
@ -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>",
|
||||
|
|
|
|||
|
|
@ -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 [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue