mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
check err in user register command
This commit is contained in:
parent
e736573a57
commit
f83d6c2193
@ -10,7 +10,7 @@ func Seed(n int) {
|
|||||||
datastore.Seed(n)
|
datastore.Seed(n)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Archive processes unarchived data (pageviews to aggeegated count tables)
|
// Archive processes unarchived data (pageviews to aggregated count tables)
|
||||||
func Archive() {
|
func Archive() {
|
||||||
count.Archive()
|
count.Archive()
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,11 @@ func Register(email string, password string) {
|
|||||||
Email: email,
|
Email: email,
|
||||||
Password: string(hash),
|
Password: string(hash),
|
||||||
}
|
}
|
||||||
user.Save(datastore.DB)
|
err := user.Save(datastore.DB)
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("Error creating user: %s", err)
|
||||||
|
} else {
|
||||||
|
log.Printf("User %s #%d created.\n", email, user.ID)
|
||||||
|
}
|
||||||
|
|
||||||
log.Printf("User %s #%d created.\n", email, user.ID)
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user