fix: reset id before creating
(cherry picked from commit c252c8f0cd1c09a74b564e67a855cca4cd436585)
This commit is contained in:
@ -127,6 +127,7 @@ func (w *Webhook) Create(s *xorm.Session, a web.Auth) (err error) {
|
||||
}
|
||||
|
||||
w.CreatedByID = a.GetID()
|
||||
w.ID = 0
|
||||
_, err = s.Insert(w)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user