Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(access): In AccessDomainRepositoryImpl in method createUser save …
Browse files Browse the repository at this point in the history
…user after creation
  • Loading branch information
AndreaBrighi committed May 4, 2023
1 parent 6f9af8d commit a585da5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ class AccessDomainRepositoryImpl(
private val accessRemoteDataStorage: AccessRemoteDataStorage
) : AccessDomainRepository {

override fun createUser(user: User): User = accessRemoteDataStorage.createUser(user)
override fun createUser(user: User): User =
accessRemoteDataStorage.createUser(user)
.also { accessLocalDataStorage.saveUser(it) }

override fun isUserLogged(): Boolean = accessLocalDataStorage.isUserSaved()

Expand Down

0 comments on commit a585da5

Please sign in to comment.