mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 14:35:52 +01:00
(refs #26) Fix splitWith condition.
This commit is contained in:
@@ -138,7 +138,11 @@ trait IssuesService {
|
|||||||
}
|
}
|
||||||
.drop(offset).take(limit)
|
.drop(offset).take(limit)
|
||||||
.list
|
.list
|
||||||
.splitWith(_._1.issueId == _._1.issueId)
|
.splitWith { (c1, c2) =>
|
||||||
|
c1._1.userName == c2._1.userName &&
|
||||||
|
c1._1.repositoryName == c2._1.repositoryName &&
|
||||||
|
c1._1.issueId == c2._1.issueId
|
||||||
|
}
|
||||||
.map { issues => issues.head match {
|
.map { issues => issues.head match {
|
||||||
case (issue, commentCount, _,_,_) =>
|
case (issue, commentCount, _,_,_) =>
|
||||||
(issue,
|
(issue,
|
||||||
|
|||||||
Reference in New Issue
Block a user