mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
update api
This commit is contained in:
@ -113,7 +113,7 @@ class Api {
|
||||
var data = {"name": name, "command": command, "schedule": cron};
|
||||
|
||||
if (id != null) {
|
||||
data["_id"] = id;
|
||||
data["id"] = id;
|
||||
return await Http.put<NullResponse>(
|
||||
Url.addTask,
|
||||
data,
|
||||
@ -217,7 +217,7 @@ class Api {
|
||||
};
|
||||
|
||||
if (id != null) {
|
||||
data["_id"] = id;
|
||||
data["id"] = id;
|
||||
return await Http.put<NullResponse>(
|
||||
Url.addEnv,
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user