Skip to content

Commit 804c4e5

Browse files
authored
Merge pull request #340 from opengovern/feat-task-changes
fix: fix reflection error
2 parents a11909b + 6e1bd82 commit 804c4e5

File tree

1 file changed

+1
-1
lines changed
  • jobs/post-install-job/job/migrations/inventory

1 file changed

+1
-1
lines changed

Diff for: jobs/post-install-job/job/migrations/inventory/migrator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func populateFinderItem(logger *zap.Logger, tx *gorm.DB, path string, info fs.Fi
423423
err = tx.Model(&models.NamedQuery{}).Clauses(clause.OnConflict{
424424
Columns: []clause.Column{{Name: "id"}}, // key column
425425
DoNothing: true, // column needed to be updated
426-
}).Create(namedQuery).Error
426+
}).Create(&namedQuery).Error
427427
if err != nil {
428428
logger.Error("failure in insert query", zap.Error(err))
429429
return err

0 commit comments

Comments
 (0)