Skip to content

Commit

Permalink
when calculating managers for method defs, dont show dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidangb committed Aug 30, 2017
1 parent 4d30e49 commit 5ae048d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -327,7 +327,7 @@ class AgoraBusiness(permissionsDataSource: PermissionsDataSource)(implicit ec: E
val numSnapshots:Int = aes.size
val numConfigurations:Int = aes.map { ae => configCounts.getOrElse(ae.id, 0) }.sum
val isPublic = aes.exists(_.public.contains(true))
val managers = aes.flatMap { ae => ae.managers }
val managers = aes.flatMap { ae => ae.managers }.distinct

// use the most recent (i.e. highest snapshot value) to populate the definition
val latestSnapshot = aes.maxBy(_.snapshotId.getOrElse(Int.MinValue))
Expand Down

0 comments on commit 5ae048d

Please sign in to comment.