Merge pull request 'Emma: Add /api/currencies endpoint for currency dropdown' (#13) from emma/fix-11 into master

This commit is contained in:
Johan Jongsma 2026-04-09 15:40:16 +00:00
commit 2195b51eec
1 changed files with 2 additions and 1 deletions

View File

@ -1147,7 +1147,8 @@ Entries:
for rows.Next() {
var c Currency
if err := rows.Scan(&c.Code, &c.Name, &c.Symbol, &c.SymbolPosition); err != nil {
continue // Skip malformed rows
log.Printf("ERR-ADMIN-003: Failed to scan currency row - %v", err)
continue
}
if topMap[c.Code] {
top = append(top, c)