|
@@ -271,15 +271,16 @@ func (repository *DividendsEstimateRepository) UpdateMany(dividendsEstimates []* |
|
@@ -271,15 +271,16 @@ func (repository *DividendsEstimateRepository) UpdateMany(dividendsEstimates []* |
271
|
if _, err := tx.Model(÷ndsEstimateModels).WherePK().Update(); err != nil {
|
271
|
if _, err := tx.Model(÷ndsEstimateModels).WherePK().Update(); err != nil {
|
272
|
return nil, err
|
272
|
return nil, err
|
273
|
}
|
273
|
}
|
274
|
- var dividendsEstimatesUpdated []*domain.DividendsEstimate
|
|
|
275
|
- for _, dividendsEstimateModel := range dividendsEstimateModels {
|
|
|
276
|
- if dividendsEstimate, err := transform.TransformToDividendsEstimateDomainModelFromPgModels(dividendsEstimateModel); err != nil {
|
|
|
277
|
- return dividendsEstimates, err
|
|
|
278
|
- } else {
|
|
|
279
|
- dividendsEstimatesUpdated = append(dividendsEstimatesUpdated, dividendsEstimate)
|
|
|
280
|
- }
|
|
|
281
|
- }
|
|
|
282
|
- return dividendsEstimatesUpdated, nil
|
274
|
+ //var dividendsEstimatesUpdated []*domain.DividendsEstimate
|
|
|
275
|
+ //for _, dividendsEstimateModel := range dividendsEstimateModels {
|
|
|
276
|
+ // if dividendsEstimate, err := transform.TransformToDividendsEstimateDomainModelFromPgModels(dividendsEstimateModel); err != nil {
|
|
|
277
|
+ // return dividendsEstimates, err
|
|
|
278
|
+ // } else {
|
|
|
279
|
+ // dividendsEstimatesUpdated = append(dividendsEstimatesUpdated, dividendsEstimate)
|
|
|
280
|
+ // }
|
|
|
281
|
+ //}
|
|
|
282
|
+ //return dividendsEstimatesUpdated, nil
|
|
|
283
|
+ return dividendsEstimates, nil
|
283
|
}
|
284
|
}
|
284
|
|
285
|
|
285
|
func (repository *DividendsEstimateRepository) Remove(dividendsEstimate *domain.DividendsEstimate) (*domain.DividendsEstimate, error) {
|
286
|
func (repository *DividendsEstimateRepository) Remove(dividendsEstimate *domain.DividendsEstimate) (*domain.DividendsEstimate, error) {
|