1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-06-24 09:21:43 +03:00

Skip auto dumping database migration

Fix user id from context
This commit is contained in:
Jamie Curnow
2023-05-29 14:33:58 +10:00
parent cbcb0cc0f8
commit dde368f733
9 changed files with 9 additions and 8 deletions

View File

@ -68,7 +68,7 @@ func CreateStream() func(http.ResponseWriter, *http.Request) {
}
// Get userID from token
userID, _ := r.Context().Value(c.UserIDCtxKey).(int)
userID, _ := r.Context().Value(c.UserIDCtxKey).(uint)
newHost.UserID = userID
if err = newHost.Save(); err != nil {