mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-08-08 11:13:58 +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)
|
* Returns the counts of all tasks (some might be zero)
|
||||||
*/
|
*/
|
||||||
async fetch_available_tasks(user: BackendUserCore, lang: string): Promise<AvailableTasks> {
|
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