Added NewPostList constructor to set fields to be non-null (#5440)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
38c42ca53f
Коммит
eadf37ad7a
@@ -450,7 +450,7 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo
|
||||
}
|
||||
}
|
||||
|
||||
posts := &model.PostList{}
|
||||
posts := model.NewPostList()
|
||||
for _, channel := range channels {
|
||||
if result := <-channel; result.Err != nil {
|
||||
return nil, result.Err
|
||||
|
||||
Ссылка в новой задаче
Block a user