Send lang parameter the correct way (#901)

This commit is contained in:
AbdBarho
2023-01-24 02:55:06 +01:00
committed by GitHub
parent 25b8c6a085
commit b208ffb00a
+1 -1
View File
@@ -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);
}
}