From 5fdfb9e8f22b139300d862b51e277422abb5a29a Mon Sep 17 00:00:00 2001 From: Omar Abdulaziz Date: Tue, 25 Feb 2025 17:03:50 +0200 Subject: [PATCH] ignore updated_at field from indexer tables in node response --- grid-proxy/pkg/types/indexer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grid-proxy/pkg/types/indexer.go b/grid-proxy/pkg/types/indexer.go index c7eeb27de..338055d4f 100644 --- a/grid-proxy/pkg/types/indexer.go +++ b/grid-proxy/pkg/types/indexer.go @@ -8,7 +8,7 @@ type NodeGPU struct { Vendor string `json:"vendor"` Device string `json:"device"` Contract int `json:"contract"` - UpdatedAt int64 `json:"updated_at"` + UpdatedAt int64 `json:"updated_at,omitempty"` } func (NodeGPU) TableName() string { @@ -45,7 +45,7 @@ type Speed struct { NodeTwinId uint32 `json:"node_twin_id,omitempty" gorm:"unique;not null"` Upload float64 `json:"upload"` // in bit/sec Download float64 `json:"download"` // in bit/sec - UpdatedAt int64 + UpdatedAt int64 `json:"updated_at,omitempty"` } func (Speed) TableName() string { @@ -71,7 +71,7 @@ type Dmi struct { Baseboard Baseboard `json:"baseboard" gorm:"type:jsonb;serializer:json"` Processor []Processor `json:"processor" gorm:"type:jsonb;serializer:json"` Memory []Memory `json:"memory" gorm:"type:jsonb;serializer:json"` - UpdatedAt int64 + UpdatedAt int64 `json:"updated_at,omitempty"` } func (Dmi) TableName() string { @@ -100,7 +100,7 @@ type Memory struct { type NodeFeatures struct { NodeTwinId uint32 `json:"node_twin_id,omitempty" gorm:"unique;not null"` - UpdatedAt int64 `json:"updated_at"` + UpdatedAt int64 `json:"updated_at,omitempty"` Features []string `json:"features" gorm:"type:jsonb;serializer:json"` }