Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to actual silos table #9

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions internal/handlers/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion internal/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading