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

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