fix(websocket): errors in saving client info during ping ping

This commit is contained in:
2025-07-29 20:13:05 -05:00
parent daf9e8a966
commit 4368111311
5 changed files with 136 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ type ClientRecord struct {
IPAddress string `gorm:"not null"`
UserAgent string `gorm:"size:255"`
ConnectedAt time.Time `gorm:"index"`
LastHeartbeat time.Time `gorm:"index"`
LastHeartbeat time.Time `gorm:"column:last_heartbeat"`
Channels JSONB `gorm:"type:jsonb"`
CreatedAt time.Time
UpdatedAt time.Time