mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
fix(GODT-2859): Fix scope of the function + rename properly.
This commit is contained in:
@ -37,7 +37,7 @@ func (bridge *Bridge) databaseResyncNeeded() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (bridge *Bridge) TryMigrate(vault *vault.User) {
|
||||
func (bridge *Bridge) migrateUser(vault *vault.User) {
|
||||
if bridge.databaseResyncNeeded() {
|
||||
if err := bridge.reporter.ReportMessage("Database need to be re-sync for migration."); err != nil {
|
||||
logrus.WithError(err).Error("Failed to report database re-sync for migration.")
|
||||
|
||||
@ -524,8 +524,8 @@ func (bridge *Bridge) addUserWithVault(
|
||||
return fmt.Errorf("failed to get Statistics directory: %w", err)
|
||||
}
|
||||
|
||||
// re-set SyncStatus if database need to be re-sync for migration.
|
||||
bridge.TryMigrate(vault)
|
||||
// re-set SyncStatus if database need to be re-synced for migration.
|
||||
bridge.migrateUser(vault)
|
||||
|
||||
user, err := user.New(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user