set update_at on bookmarks return when changing sort order (#28807)

* set update_at on bookmarks return when changing sort order

* update bookmarks sort order test
Этот коммит содержится в:
Elias Nahum
2024-10-17 13:42:19 +08:00
коммит произвёл GitHub
родитель 48cde8c0bf
Коммит f8f998bfcb
2 изменённых файлов: 18 добавлений и 2 удалений

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

@@ -270,6 +270,7 @@ func (s *SqlChannelBookmarkStore) UpdateSortOrder(bookmarkId, channelId string,
ids := []string{}
for index, b := range bookmarks {
b.SortOrder = int64(index)
b.UpdateAt = now
caseStmt = caseStmt.When(sq.Eq{"Id": b.Id}, strconv.FormatInt(int64(index), 10))
ids = append(ids, b.Id)
}