mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Migrate "Channel.PermanentDeleteMembersByUser" to Sync by default (#11243)
* Change PermanentDeleteMembersByUser to sync by default * Address comments
This commit is contained in:
committed by
Jesús Espino
parent
4cf6ae6808
commit
879883e9a3
@@ -1462,8 +1462,8 @@ func (a *App) PermanentDeleteUser(user *model.User) *model.AppError {
|
||||
return err
|
||||
}
|
||||
|
||||
if result := <-a.Srv.Store.Channel().PermanentDeleteMembersByUser(user.Id); result.Err != nil {
|
||||
return result.Err
|
||||
if err := a.Srv.Store.Channel().PermanentDeleteMembersByUser(user.Id); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := a.Srv.Store.Post().PermanentDeleteByUser(user.Id); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user