mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
Send lang parameter the correct way (#901)
This commit is contained in:
@@ -276,7 +276,7 @@ export class OasstApiClient {
|
||||
* Returns the counts of all tasks (some might be zero)
|
||||
*/
|
||||
async fetch_available_tasks(user: BackendUserCore, lang: string): Promise<AvailableTasks> {
|
||||
return this.post(`/api/v1/tasks/availability`, { ...user, lang });
|
||||
return this.post(`/api/v1/tasks/availability?lang=${lang}`, user);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user