MM-26793 Fix accidentally removing other users' favorites again (#14995)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1302492874
Коммит
b0b9c707a6
@@ -3899,6 +3899,7 @@ func (s SqlChannelStore) UpdateSidebarCategories(userId, teamId string, categori
|
||||
// Remove any old favorites that might have been in this category
|
||||
sql, args, _ := s.getQueryBuilder().Delete("Preferences").Where(
|
||||
sq.Eq{
|
||||
"UserId": userId,
|
||||
"Name": category.Channels,
|
||||
"Category": model.PREFERENCE_CATEGORY_FAVORITE_CHANNEL,
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user