Skip to content

Commit

Permalink
Fix bug when re-adding approvers (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreda authored Feb 7, 2024
1 parent b85ee98 commit 054fdcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/models/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,7 @@ func (d *Document) replaceAssocations(db *gorm.DB) error {
if err := db.
Session(&gorm.Session{SkipHooks: true}).
Model(&d).
Unscoped().
Association("Approvers").
Replace(d.Approvers); err != nil {
return err
Expand Down

0 comments on commit 054fdcb

Please sign in to comment.