summaryrefslogtreecommitdiffstats
path: root/store/sql_user_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r--store/sql_user_store.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/store/sql_user_store.go b/store/sql_user_store.go
index 7c716db67..325008670 100644
--- a/store/sql_user_store.go
+++ b/store/sql_user_store.go
@@ -969,34 +969,6 @@ func (us SqlUserStore) VerifyEmail(userId string) StoreChannel {
return storeChannel
}
-func (us SqlUserStore) GetForExport(teamId string) StoreChannel {
-
- storeChannel := make(StoreChannel)
-
- go func() {
- result := StoreResult{}
-
- var users []*model.User
-
- if _, err := us.GetReplica().Select(&users, "SELECT Users.* FROM Users, TeamMembers WHERE TeamMembers.TeamId = :TeamId AND Users.Id = TeamMembers.UserId", map[string]interface{}{"TeamId": teamId}); err != nil {
- result.Err = model.NewLocAppError("SqlUserStore.GetForExport", "store.sql_user.get_for_export.app_error", nil, err.Error())
- } else {
- for _, u := range users {
- u.Password = ""
- u.AuthData = new(string)
- *u.AuthData = ""
- }
-
- result.Data = users
- }
-
- storeChannel <- result
- close(storeChannel)
- }()
-
- return storeChannel
-}
-
func (us SqlUserStore) GetTotalUsersCount() StoreChannel {
storeChannel := make(StoreChannel)