diff --git a/api/message.go b/api/message.go index b06a7d6..86770d1 100644 --- a/api/message.go +++ b/api/message.go @@ -29,7 +29,7 @@ type Notifier interface { // The MessageAPI provides handlers for managing messages. type MessageAPI struct { - DB MessageDatabase + DB MessageDatabase Notifier Notifier } diff --git a/model/user.go b/model/user.go index 7e8786f..769aef6 100644 --- a/model/user.go +++ b/model/user.go @@ -2,7 +2,7 @@ package model // The User holds information about the credentials of a user and its application and client tokens. type User struct { - ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"` + ID uint `gorm:"primary_key;unique_index;AUTO_INCREMENT"` Name string `gorm:"unique_index"` Pass []byte Admin bool