More work to support nullable foreign keys

Adds nullable int/uint types
This commit is contained in:
Jamie Curnow committed 2023-05-30 22:26:44 +10:00
1 parent 88f3953f92
commit 4a57956093
14 files changed
+387 -256

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ func CreateHost() func(http.ResponseWriter, *http.Request) {
return
}
if newHost.UpstreamID > 0 {
if newHost.UpstreamID.Uint > 0 {
// nolint: errcheck, gosec
newHost.Expand([]string{"upstream"})
}