Skip to content

Commit eb8830d

Browse files
committed
fix: audit logs no username
1 parent 8949391 commit eb8830d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/models/auditLog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
type AuditLog struct {
1111
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
1212
UserID *int64 `gorm:"index" json:"user_id"`
13-
Username *string `gorm:"-" json:"username"`
14-
Email *string `gorm:"-" json:"email"`
13+
Username *string `json:"username"`
14+
Email *string `json:"email"`
1515
Action string `gorm:"not null" json:"action"`
1616
ResourceType string `gorm:"not null" json:"resourceType"`
1717
ResourceID *int64 `json:"resourceId"`

0 commit comments

Comments
 (0)