mirror of
https://github.com/go-gitea/gitea
synced 2025-07-29 13:48:36 +00:00
Fix bug
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
|
"code.gitea.io/gitea/models/db"
|
||||||
"code.gitea.io/gitea/modules/timeutil"
|
"code.gitea.io/gitea/modules/timeutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -40,6 +41,10 @@ type Secret struct {
|
|||||||
CreatedUnix timeutil.TimeStamp `xorm:"created NOTNULL"`
|
CreatedUnix timeutil.TimeStamp `xorm:"created NOTNULL"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
db.RegisterModel(new(Secret))
|
||||||
|
}
|
||||||
|
|
||||||
// Validate validates the required fields and formats.
|
// Validate validates the required fields and formats.
|
||||||
func (s *Secret) Validate() error {
|
func (s *Secret) Validate() error {
|
||||||
switch {
|
switch {
|
||||||
|
Reference in New Issue
Block a user