Created
October 14, 2018 04:57
-
-
Save j5ik2o/eafc9c75648c2c8445c85a8deb083b93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class UserAcount(id: Long, name: String, groupId: Long) { | |
// ... | |
def groupName(groupRepository: GroupRepository): Task[GroupName] = groupRepository.resolveBy(groupId).map(_.name) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment