Browse Source

group: add ToOb

Yi 1 year ago
parent
commit
90958b7de7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      module/backend/feed_service.go

+ 1 - 0
module/backend/feed_service.go

@@ -1011,6 +1011,7 @@ func (s *StoreEntry) checkoutDistributeData(ctx context.Context, req *operationP
 	if err := s.DB.Model(new(model.FeedFormula)).Where("id IN ?", req.FeedFormulaIds).Find(&newFeedFormulaList).Error; err != nil {
 		return result, xerr.WithStack(err)
 	}
+	result.FeedFormulaList = model.FeedFormulaSlice(newFeedFormulaList).ToDistributePB()
 
 	if len(result.FeedFormulaList) != len(req.FeedFormulaIds) {
 		return result, xerr.Customf("数据错误:%v", req.FeedFormulaIds)