2017-07-17 17:49:52 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/fatih/color"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
color.Yellow("Updating user struct")
|
|
|
|
|
2017-07-17 17:56:26 +00:00
|
|
|
// // Iterate over the stream
|
|
|
|
// for user := range arn.MustStreamUsers() {
|
|
|
|
// newUser := &arn.UserNew{}
|
2017-07-17 17:49:52 +00:00
|
|
|
|
2017-07-17 17:56:26 +00:00
|
|
|
// copier.Copy(newUser, user)
|
|
|
|
// newUser.Avatar.Extension = user.Avatar
|
2017-07-17 17:49:52 +00:00
|
|
|
|
2017-07-17 17:56:26 +00:00
|
|
|
// // Save in DB
|
|
|
|
// arn.PanicOnError(arn.DB.Set("User", user.ID, newUser))
|
|
|
|
// }
|
2017-07-17 17:49:52 +00:00
|
|
|
|
|
|
|
color.Green("Finished.")
|
|
|
|
}
|