fix: update original url at first login

This commit is contained in:
Anthony Laibe 2023-09-20 10:17:29 +02:00
parent bc4093299e
commit 57c7054dd2
1 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,11 @@ func (nm *Manager) Init(networks []params.Network) error {
if err != nil {
errors += fmt.Sprintf("error inserting network with ChainID: %d, %s", networks[i].ChainID, err.Error())
}
err = nm.UpdateOriginalURL(networks[i].ChainID, networks[i].RPCURL, networks[i].FallbackURL)
if err != nil {
errors += fmt.Sprintf("error updating network original url for ChainID: %d, %s", networks[i].ChainID, err.Error())
}
}
}