Configure initial bank history in the connection UI
This commit is contained in:
@@ -346,13 +346,14 @@ func (s *Server) bankingSettings(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
func (s *Server) authorize(w http.ResponseWriter, r *http.Request) {
|
||||
var b struct {
|
||||
Institution string `json:"institution"`
|
||||
Country string `json:"country"`
|
||||
Institution string `json:"institution"`
|
||||
Country string `json:"country"`
|
||||
HistoryMonths int `json:"history_months"`
|
||||
}
|
||||
if !decode(w, r, &b) {
|
||||
return
|
||||
}
|
||||
v, e := s.app.Authorize(r.Context(), b.Institution, b.Country)
|
||||
v, e := s.app.Authorize(r.Context(), b.Institution, b.Country, b.HistoryMonths)
|
||||
respond(w, map[string]string{"url": v}, e)
|
||||
}
|
||||
func (s *Server) callback(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user