diff --git a/internal/handlers/types.go b/internal/handlers/types.go index 0faeb53..528a6fb 100644 --- a/internal/handlers/types.go +++ b/internal/handlers/types.go @@ -18,11 +18,11 @@ type HandlerResult struct { type Record struct { ID int `json:"id"` Name string `json:"name"` - Coin string `json:"coin"` + Coin string `json:"base_token_symbol"` ChainID int `json:"chain_id"` - LightLogoURL string `json:"light_logo_url"` - DarkLogoURL string `json:"dark_logo_url"` - FaviconURL string `json:"favicon_url"` + LightLogoURL string `json:"network_logo"` + DarkLogoURL string `json:"network_logo_dark"` + FaviconURL string `json:"favicon"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } diff --git a/internal/subscription/subscription.go b/internal/subscription/subscription.go index e649bb1..051fa4a 100644 --- a/internal/subscription/subscription.go +++ b/internal/subscription/subscription.go @@ -185,7 +185,7 @@ func (s *Subscription) InitialCheck(worker *worker.Worker) error { defer db.Close() // Query the current state - limit 1 since there should be only one record - query := fmt.Sprintf("SELECT id, name, coin, chain_id, light_logo_url, dark_logo_url, favicon_url, created_at, updated_at FROM %s WHERE chain_id = $1 LIMIT 1", table) + query := fmt.Sprintf("SELECT id, name, base_token_symbol, chain_id, network_logo, network_logo_dark, favicon, created_at, updated_at FROM %s WHERE chain_id = $1 LIMIT 1", table) rows, err := db.Query(query, chainId) if err != nil { return fmt.Errorf("failed to query database: %w", err)