mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
More work to support nullable foreign keys
Adds nullable int/uint types
This commit is contained in:
@ -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