General improvements

This commit is contained in:
2017-10-06 13:03:36 +02:00
parent bb39234f2d
commit 6c641c3632
5 changed files with 76 additions and 59 deletions

View File

@ -24,13 +24,8 @@ func main() {
color.Yellow("Deleting all pro subscriptions")
// Get a stream of all users
allUsers, err := arn.StreamUsers()
arn.PanicOnError(err)
// Iterate over the stream
for user := range allUsers {
user.Balance = 0
for user := range arn.MustStreamUsers() {
user.ProExpires = ""
arn.PanicOnError(user.Save())
}