Skip to content

Commit

Permalink
await testAuth result
Browse files Browse the repository at this point in the history
  • Loading branch information
ubbabeck committed Jan 17, 2024
1 parent 75eff69 commit 54a5eaa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bloc/backup/backup_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,9 @@ class BackupBloc with AsyncActionsHandler {
}
}

Future testAuth(BackupProvider provider, RemoteServerAuthData authData) {
return _breezLib
Future testAuth(
BackupProvider provider, RemoteServerAuthData authData) async {
return await _breezLib
.testBackupAuth(provider.name, json.encode(authData.toJson()))
.catchError(
(error) {
Expand Down

0 comments on commit 54a5eaa

Please sign in to comment.