monobank-firefly3-bot/config/helpers.go

12 lines
191 B
Go
Raw Normal View History

2024-04-12 13:00:28 +03:00
package config
func (c *Config) GetAccountByMonobankId(q string) ConfigAccount {
for _, row := range c.Accounts {
if row.MonobankId == q {
return row
}
}
return ConfigAccount{}
}