Removed old jobs

This commit is contained in:
2017-11-01 11:16:31 +01:00
parent b0d03fe8ef
commit 46dd9f53a8
6 changed files with 8 additions and 166 deletions

View File

@ -8,14 +8,10 @@ import (
func main() {
color.Yellow("Adding balance to all users")
// Get a stream of all users
allUsers, err := arn.StreamUsers()
arn.PanicOnError(err)
// Iterate over the stream
for user := range allUsers {
for user := range arn.StreamUsers() {
user.Balance += 100000
arn.PanicOnError(user.Save())
user.Save()
}
color.Green("Finished.")