Skip to content

Commit

Permalink
update the backend path to manage user status (#1294)
Browse files Browse the repository at this point in the history
  • Loading branch information
fozziethebeat committed Feb 8, 2023
1 parent db76b0b commit c9d283a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/lib/oasst_api_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class OasstApiClient {
* Updates the backend's knowledge about the `user_id`.
*/
async set_user_status(user_id: string, is_enabled: boolean, notes: string): Promise<void> {
await this.put(`/api/v1/users/users/${user_id}?enabled=${is_enabled}&notes=${notes}`);
await this.put(`/api/v1/users/${user_id}?enabled=${is_enabled}&notes=${notes}`);
}

/**
Expand Down

0 comments on commit c9d283a

Please sign in to comment.