[MM-15925] Add includeDeleted flag to GetForPost in FileInfoStore (#11585)

Этот коммит содержится в:
Miguel de la Cruz
2019-07-15 08:54:30 +02:00
коммит произвёл GitHub
родитель c1f3c83d38
Коммит 8f4e03a52b
8 изменённых файлов: 119 добавлений и 39 удалений

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

@@ -275,7 +275,7 @@ func (a *App) MigrateFilenamesToFileInfos(post *model.Post) []*model.FileInfo {
if newPost := result.Posts[post.Id]; len(newPost.Filenames) != len(post.Filenames) {
// Another thread has already created FileInfos for this post, so just return those
var fileInfos []*model.FileInfo
fileInfos, err = a.Srv.Store.FileInfo().GetForPost(post.Id, true, false)
fileInfos, err = a.Srv.Store.FileInfo().GetForPost(post.Id, true, false, false)
if err != nil {
mlog.Error(fmt.Sprintf("Unable to get FileInfos for migrated post, err=%v", err), mlog.String("post_id", post.Id))
return []*model.FileInfo{}