1
0
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:
2018-08-20 23:37:58 -05:00
parent e593472c84
commit 5a542e0ffb
16 changed files with 272 additions and 125 deletions

View File

@@ -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
}