Minor changes

This commit is contained in:
Eduard Urbach 2017-10-31 12:12:21 +01:00
parent 2b03ba6cc6
commit 32d7378e87
3 changed files with 21 additions and 2 deletions

View File

@ -72,7 +72,7 @@ func configure(app *aero.Application) *aero.Application {
// TODO: ...
// app.Sessions.Store = aerospikestore.New(arn.DB, "Session", app.Sessions.Duration)
app.Sessions.Store = nanostore.New(arn.DB, "Session")
app.Sessions.Store = nanostore.New(arn.DB.Collection("Session"))
// Layout
app.Layout = layout.Render

View File

@ -7,6 +7,6 @@ import (
func main() {
color.Yellow("Deleting all sessions...")
arn.DB.DeleteTable("Session")
arn.DB.Clear("Session")
color.Green("Finished.")
}

19
patches/nano-test/main.go Normal file
View File

@ -0,0 +1,19 @@
package main
import (
"github.com/animenotifier/arn"
)
func main() {
defer arn.Node.Close()
user, _ := arn.GetUserByNick("Akyoto")
if user.Language == ":)" {
user.Language = ":("
} else {
user.Language = ":)"
}
user.Save()
}