mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-02 11:50:46 +08:00
update the backend path to manage user status (#1294)
This commit is contained in:
1 parent
db76b0b1fa
commit
c9d283a1ff
1 file changed
+1
-1
@@ -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}¬es=${notes}`);
|
||||
await this.put(`/api/v1/users/${user_id}?enabled=${is_enabled}¬es=${notes}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user