Skip to content

Commit 4f94577

Browse files
authored
fix: don't return owner facets without showAll (#37)
1 parent 40f1b40 commit 4f94577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/routers/processings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ router.get('', async (req, res) => {
150150
] as any[]
151151

152152
// Get for each owner (user/organization OR department) the number of processings
153-
if (params.showAll) {
153+
if (params.showAll === 'true') {
154154
aggregationPipeline[0].$facet.owners = [
155155
{
156156
$group: {

0 commit comments

Comments
 (0)