Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
4cfe61393b
Коммит
5f3e6ad20a
@@ -332,14 +332,12 @@ func (a *App) buildUserNotifyProps(notifyProps model.StringMap) *UserNotifyProps
|
||||
func (a *App) ExportAllPosts(writer io.Writer) *model.AppError {
|
||||
afterId := strings.Repeat("0", 26)
|
||||
for {
|
||||
result := <-a.Srv.Store.Post().GetParentsForExportAfter(1000, afterId)
|
||||
posts, err := a.Srv.Store.Post().GetParentsForExportAfter(1000, afterId)
|
||||
|
||||
if result.Err != nil {
|
||||
return result.Err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
posts := result.Data.([]*model.PostForExport)
|
||||
|
||||
if len(posts) == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user