1
0
mirror of https://github.com/go-vikunja/app synced 2024-06-02 18:49:47 +00:00
This commit is contained in:
Benimautner 2023-12-03 21:21:35 +01:00
commit 045bc6f668

View File

@ -13,7 +13,7 @@ class TaskAPIService extends APIService implements TaskService {
@override
Future<Task?> add(int projectId, Task task) {
return client
.put('/projects/$projectId', body: task.toJSON())
.put('/projects/$projectId/tasks', body: task.toJSON())
.then((response) {
if (response == null) return null;
return Task.fromJson(response.body);