Get posts for a channel has_next attribute fix (#26901)

* Get posts for a channel has_next attribute fix

* HasNext attribute test changes

* tests fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Arya Khochare
2024-08-21 11:00:42 +05:30
коммит произвёл GitHub
родитель 468813c04f
Коммит 4999c4a9c6
4 изменённых файлов: 13 добавлений и 11 удалений

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

@@ -677,7 +677,7 @@ func (s *SqlPostStore) getPostWithCollapsedThreads(id, userID string, opts model
list.AddPost(p)
list.AddOrder(p.Id)
}
list.HasNext = hasNext
list.HasNext = &hasNext
return list, nil
}
@@ -828,7 +828,7 @@ func (s *SqlPostStore) Get(ctx context.Context, id string, opts model.GetPostsOp
pl.AddPost(p)
pl.AddOrder(p.Id)
}
pl.HasNext = hasNext
pl.HasNext = &hasNext
}
return pl, nil
}