Skip to content

Commit

Permalink
RHINENG-1604: return updated system_platform record
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Sep 11, 2023
1 parent 72bf4a1 commit af052cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions listener/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ func storeOrUpdateSysPlatform(tx *gorm.DB, system *models.SystemPlatform, colsTo
utils.LogWarn("err", errSelect, "couldn't find system for update")
}

// return system_platform record after update
tx = tx.Clauses(clause.Returning{})

if system.ID != 0 {
// update system
err = tx.Select(colsToUpdate).Updates(system).Error
Expand Down

0 comments on commit af052cc

Please sign in to comment.