remove globals
This commit is contained in:
@@ -236,6 +236,7 @@ type Flash struct {
|
||||
Type FlashType
|
||||
}
|
||||
|
||||
//nolint:gochecknoinits
|
||||
func init() {
|
||||
gob.Register(&Flash{})
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (c *Controller) ServeHome(r *http.Request) *Response {
|
||||
c.DB.
|
||||
Where("user_id=?", user.ID).
|
||||
Find(&data.TranscodePreferences)
|
||||
for profile := range encode.Profiles {
|
||||
for profile := range encode.Profiles() {
|
||||
data.TranscodeProfiles = append(data.TranscodeProfiles, profile)
|
||||
}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user