From 642778bd19fbafc67344b0e48cf1223817748e12 Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Tue, 12 Sep 2023 12:57:52 +0200 Subject: [PATCH] RHINENG-1604: return only necessary columns after system_platform update --- listener/upload.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/listener/upload.go b/listener/upload.go index b07b691b2..2131dbe00 100644 --- a/listener/upload.go +++ b/listener/upload.go @@ -378,7 +378,12 @@ func storeOrUpdateSysPlatform(tx *gorm.DB, system *models.SystemPlatform, colsTo } // return system_platform record after update - tx = tx.Clauses(clause.Returning{}) + tx = tx.Clauses(clause.Returning{ + Columns: []clause.Column{ + {Name: "id"}, {Name: "inventory_id"}, {Name: "rh_account_id"}, + {Name: "unchanged_since"}, {Name: "last_evaluation"}, + }, + }) if system.ID != 0 { // update system