diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-20 12:43:44 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-20 12:43:44 -0600 |
commit | 75f8729e2d25467500778e633c45c97e78a8f7a0 (patch) | |
tree | 47735a3dd609e025837df4460b0d030454358cf1 /api/import.go | |
parent | aac8d121a00922f007b9c67d890ea9dbcfbe4b8f (diff) | |
download | chat-75f8729e2d25467500778e633c45c97e78a8f7a0.tar.gz chat-75f8729e2d25467500778e633c45c97e78a8f7a0.tar.bz2 chat-75f8729e2d25467500778e633c45c97e78a8f7a0.zip |
PLT-7 adding loc db calls for users table
Diffstat (limited to 'api/import.go')
-rw-r--r-- | api/import.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/import.go b/api/import.go index 0b31d05a3..e94e83e9a 100644 --- a/api/import.go +++ b/api/import.go @@ -25,7 +25,7 @@ func ImportPost(T goi18n.TranslateFunc, post *model.Post) { func ImportUser(T goi18n.TranslateFunc, user *model.User) *model.User { user.MakeNonNil() - if result := <-Srv.Store.User().Save(user); result.Err != nil { + if result := <-Srv.Store.User().Save(T, user); result.Err != nil { l4g.Error("Error saving user. err=%v", result.Err) return nil } else { @@ -35,7 +35,7 @@ func ImportUser(T goi18n.TranslateFunc, user *model.User) *model.User { l4g.Error("Encountered an issue joining default channels user_id=%s, team_id=%s, err=%v", ruser.Id, ruser.TeamId, err) } - if cresult := <-Srv.Store.User().VerifyEmail(ruser.Id); cresult.Err != nil { + if cresult := <-Srv.Store.User().VerifyEmail(T, ruser.Id); cresult.Err != nil { l4g.Error("Failed to set email verified err=%v", cresult.Err) } |