mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
back end done for video archiving
This commit is contained in:
@@ -26,7 +26,7 @@ type Message struct {
|
||||
|
||||
// Save -
|
||||
func (m *Message) Save() error {
|
||||
return db.Conn.Save(m).Error
|
||||
return db.GetConn().Save(m).Error
|
||||
}
|
||||
|
||||
// Attachment - discord message attachment
|
||||
@@ -55,5 +55,5 @@ type User struct {
|
||||
|
||||
// Save -
|
||||
func (u *User) Save() error {
|
||||
return db.Conn.Save(u).Error
|
||||
return db.GetConn().Save(u).Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user