mirror of
https://github.com/moul/sshportal.git
synced 2025-09-08 13:44:55 +08:00
commit
a9f4227bba
1 changed files with 1 additions and 1 deletions
2
db.go
2
db.go
|
@ -446,7 +446,7 @@ func (e *Event) Log(db *gorm.DB) {
|
|||
}
|
||||
|
||||
func (e *Event) SetAuthor(user *User) *Event {
|
||||
e.Author = user
|
||||
//e.Author = user
|
||||
e.AuthorID = user.ID
|
||||
return e
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue