MM-26793 Fix accidentally removing other users' favorites again (#14995)

Этот коммит содержится в:
Harrison Healey
2020-07-09 11:08:08 -04:00
коммит произвёл GitHub
родитель 1302492874
Коммит b0b9c707a6
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@@ -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,
},