fix(projects): don't return child projects multiple times
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kolaente 2023-11-15 12:56:36 +01:00
parent ab2eda4bd5
commit 61bce2b349
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

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")