15 lines
283 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
import "github.com/aerogo/api"
// Force interface implementations
var (
2019-09-08 23:46:43 +00:00
_ Identifiable = (*DraftIndex)(nil)
_ api.Savable = (*DraftIndex)(nil)
2019-06-03 09:32:43 +00:00
)
// Save saves the index in the database.
func (index *DraftIndex) Save() {
DB.Set("DraftIndex", index.UserID, index)
}