Skip to content

Commit

Permalink
chore(user repository): adds comments PE-4752
Browse files Browse the repository at this point in the history
  • Loading branch information
matibat committed Oct 9, 2023
1 parent 7f29329 commit 756f714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/user/repositories/user_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class _UserRepository implements UserRepository {
_arweave = arweave;

// TODO: Check ProfileDAO to implement only one source for user data

// Will return null if no user is not logged in - i.e. not present in the DB
@override
Future<User?> getUser(String password) async {
final profile = await _profileDao.getDefaultProfile();
Expand Down Expand Up @@ -88,6 +90,7 @@ class _UserRepository implements UserRepository {
return profile != null;
}

// Will return null if no user is not logged in - i.e. not present in the DB
@override
Future<String?> getOwnerOfDefaultProfile() async {
final profile = await _profileDao.getDefaultProfile();
Expand Down

0 comments on commit 756f714

Please sign in to comment.