Skip to content

Commit 24f34cd

Browse files
committed
RHINENG-25740: update directly system_inventory
to skip instead of trigger
1 parent 3f8ec59 commit 24f34cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

listener/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func HandleDelete(event mqueue.PlatformEvent) error {
7979
}
8080

8181
// mark system as stale and let system_culling job remove it later
82-
query := database.DB.Model(&models.SystemPlatform{}).Where("inventory_id = ?::uuid", event.ID).
82+
query := database.DB.Model(&models.SystemInventory{}).Where("inventory_id = ?::uuid", event.ID).
8383
Updates(map[string]interface{}{
8484
"stale": true,
8585
"stale_timestamp": gorm.Expr("NOW()"),

0 commit comments

Comments
 (0)