fix(projects): don't return child projects multiple times

This commit is contained in:
kolaente 2023-11-15 12:56:36 +01:00
parent ab2eda4bd5
commit 61bce2b349
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -416,6 +416,7 @@ func getUserProjectsStatement(parentProjectIDs []int64, userID int64, search str
filterCond, filterCond,
getArchivedCond, getArchivedCond,
parentCondition, parentCondition,
builder.NotIn("l.id", parentProjectIDs),
)). )).
OrderBy("position"). OrderBy("position").
GroupBy("l.id") GroupBy("l.id")