1
0

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

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