diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-07-15 11:20:39 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-15 11:20:39 -0400 |
commit | 942ae4c5278e0a3064ef08937063ec66a6a8e990 (patch) | |
tree | 595514b6619988c72250ac2bf924cc103887f948 /store/sql_user_store.go | |
parent | b339b5c982a336abcc0a1f1bc9ba68e447472228 (diff) | |
download | chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.gz chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.tar.bz2 chat-942ae4c5278e0a3064ef08937063ec66a6a8e990.zip |
Cleaning up old export code (#3601)
Diffstat (limited to 'store/sql_user_store.go')
-rw-r--r-- | store/sql_user_store.go | 28 |
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) |