mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 07:33:07 +01:00
More work to support nullable foreign keys
Adds nullable int/uint types
This commit is contained in:
14 files changed
+387
-256
No files matched your search
@@ -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"})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user