Skip to content

Commit

Permalink
fix for incorrect bool value update
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst committed Oct 23, 2024
1 parent 62f9f35 commit 3937059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ func (s *sqlStore) allPresentations(validated bool) ([]presentationRecord, error
func (s *sqlStore) updateValidated(records []presentationRecord) error {
return s.db.Transaction(func(tx *gorm.DB) error {
for _, record := range records {
if err := tx.Model(&presentationRecord{}).Where("id = ?", record.ID).Update("validated", true).Error; err != nil {
if err := tx.Model(&presentationRecord{}).Where("id = ?", record.ID).Update("validated", SQLBool(true)).Error; err != nil {
return err
}
}
Expand Down

0 comments on commit 3937059

Please sign in to comment.