Crashes are now saved in the database
This commit is contained in:
13
arn/CrashAPI.go
Normal file
13
arn/CrashAPI.go
Normal file
@ -0,0 +1,13 @@
|
||||
package arn
|
||||
|
||||
import "github.com/aerogo/api"
|
||||
|
||||
// Force interface implementations
|
||||
var (
|
||||
_ api.Savable = (*Crash)(nil)
|
||||
)
|
||||
|
||||
// Save saves the crash in the database.
|
||||
func (crash *Crash) Save() {
|
||||
DB.Set("Crash", crash.ID, crash)
|
||||
}
|
Reference in New Issue
Block a user