Skip to content

Commit 134715b

Browse files
committed
Merge branch 'fix-opportunity-publish' into 'master'
Fix OpportunityRepository Save method See merge request joinimpact/api!78
2 parents 6fb8693 + d5b785e commit 134715b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/database/postgres/opportunity_repository.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ func (r *opportunityRepository) Update(ctx context.Context, opportunity models.O
7878

7979
// Save saves all fields in the provided entity.
8080
func (r *opportunityRepository) Save(ctx context.Context, opportunity models.Opportunity) error {
81+
opportunity.OpportunityLimits = nil
82+
opportunity.OpportunityRequirements = nil
83+
opportunity.OpportunityTags = nil
84+
8185
return r.db.Save(opportunity).Error
8286
}
8387

0 commit comments

Comments
 (0)