Skip to content

Commit

Permalink
Merge pull request #9 from aurora-is-near/silos_table
Browse files Browse the repository at this point in the history
Adapt to actual silos table
  • Loading branch information
spilin authored Jan 27, 2025
2 parents e84af9f + 34680d5 commit 60b1c58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 60b1c58

Please sign in to comment.