Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private def users(maybeAutomaticPMAssignmentDto: Option[AutomaticPMAssignmentDto]): Set[UserId] = {
- maybeAutomaticPMAssignmentDto.toSeq
- .flatMap { automaticPMAssignemntDto =>
- automaticPMAssignemntDto.forOtherServices +: automaticPMAssignemntDto.forServices.map(_.strategy)
- }
- .flatMap {
- case SelectSpecificActiveUser(userId) => Some(userId)
- case _ => None
- }
- .toSet
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement