WIP: Adds database field to delegate airflow to another room, adds select to room form.
Some checks failed
CI / Linux Tests (push) Failing after 6m39s
Some checks failed
CI / Linux Tests (push) Failing after 6m39s
This commit is contained in:
@@ -233,7 +233,6 @@ extension SiteRoute.View.ProjectRoute {
|
||||
Method.post
|
||||
Body {
|
||||
FormData {
|
||||
// Field("projectID") { Project.ID.parser() }
|
||||
Field("name", .string)
|
||||
Field("heatingLoad") { Double.parser() }
|
||||
Optionally {
|
||||
@@ -243,6 +242,9 @@ extension SiteRoute.View.ProjectRoute {
|
||||
Field("coolingSensible") { Double.parser() }
|
||||
}
|
||||
Field("registerCount") { Digits() }
|
||||
Optionally {
|
||||
Field("delegatedTo") { Room.ID.parser() }
|
||||
}
|
||||
}
|
||||
.map(.memberwise(Room.Create.init))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user