Fix profile edit with new url

This commit is contained in:
problematicconsumer
2024-01-01 17:46:29 +03:30
parent ec957cc88b
commit d28d852faf
2 changed files with 29 additions and 14 deletions

View File

@@ -97,8 +97,9 @@ class ProfileDetailsNotifier extends _$ProfileDetailsNotifier with AppLogger {
failureOrSuccess = await _profilesRepo.patch(profile).run();
} else {
loggy.debug('updating profile');
failureOrSuccess =
await _profilesRepo.updateSubscription(profile).run();
failureOrSuccess = await _profilesRepo
.updateSubscription(profile, patchBaseProfile: true)
.run();
}
} else {
loggy.debug('adding profile, url: [${profile.url}]');