update api

This commit is contained in:
jyuesong
2022-04-24 11:20:39 +08:00
parent b84be2ecb2
commit 6c3c15a85d

View File

@@ -113,7 +113,7 @@ class Api {
var data = {"name": name, "command": command, "schedule": cron}; var data = {"name": name, "command": command, "schedule": cron};
if (id != null) { if (id != null) {
data["_id"] = id; data["id"] = id;
return await Http.put<NullResponse>( return await Http.put<NullResponse>(
Url.addTask, Url.addTask,
data, data,
@@ -217,7 +217,7 @@ class Api {
}; };
if (id != null) { if (id != null) {
data["_id"] = id; data["id"] = id;
return await Http.put<NullResponse>( return await Http.put<NullResponse>(
Url.addEnv, Url.addEnv,
data, data,