update the backend path to manage user status (#1294)

This commit is contained in:
Keith Stevens
2023-02-08 21:41:15 +09:00
committed by GitHub
parent db76b0b1fa
commit c9d283a1ff
+1 -1
View File
@@ -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}`);
}
/**