Skip to content

Commit d8b503a

Browse files
committed
fixup! wip: replace save into system_platform with system_{inventory,patch}
1 parent 3250fc1 commit d8b503a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

listener/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func storeOrUpdateSysPlatform(tx *gorm.DB, system *models.SystemPlatform, colsTo
536536
}
537537
tx = tx.Clauses(clause.Returning{Columns: []clause.Column{{Name: "last_evaluation"}}})
538538
err = database.OnConflictUpdateMulti(tx, []string{"rh_account_id", "system_id"}, patchColsToUpdate...).
539-
Save(patchRecord).Error
539+
Save(&patchRecord).Error
540540
system.LastEvaluation = patchRecord.LastEvaluation
541541
return base.WrapFatalDBError(err, "unable to insert to system_platform")
542542
}

0 commit comments

Comments
 (0)