Skip to content

Commit ae49da8

Browse files
remove facet
1 parent 453ec72 commit ae49da8

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

modules/module-mongodb-storage/src/storage/MongoReportStorage.ts

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -91,47 +91,47 @@ export class MongoReportStorage implements storage.ReportStorageFactory {
9191
$match: {
9292
connect_at: timespanFilter
9393
}
94-
},
95-
{
96-
$facet: {
97-
unique_user_ids: [
98-
{
99-
$group: {
100-
_id: '$user_id'
101-
}
102-
},
103-
{
104-
$count: 'count'
105-
}
106-
],
107-
unique_user_sdk: [
108-
{
109-
$group: {
110-
_id: {
111-
user_id: '$user_id',
112-
sdk: '$sdk'
113-
}
114-
}
115-
},
116-
{
117-
$count: 'count'
118-
}
119-
],
120-
unique_user_client: [
121-
{
122-
$group: {
123-
_id: {
124-
user_id: '$user_id',
125-
client_id: '$client_id'
126-
}
127-
}
128-
},
129-
{
130-
$count: 'count'
131-
}
132-
]
133-
}
13494
}
95+
// {
96+
// $facet: {
97+
// unique_user_ids: [
98+
// {
99+
// $group: {
100+
// _id: '$user_id'
101+
// }
102+
// },
103+
// {
104+
// $count: 'count'
105+
// }
106+
// ],
107+
// unique_user_sdk: [
108+
// {
109+
// $group: {
110+
// _id: {
111+
// user_id: '$user_id',
112+
// sdk: '$sdk'
113+
// }
114+
// }
115+
// },
116+
// {
117+
// $count: 'count'
118+
// }
119+
// ],
120+
// unique_user_client: [
121+
// {
122+
// $group: {
123+
// _id: {
124+
// user_id: '$user_id',
125+
// client_id: '$client_id'
126+
// }
127+
// }
128+
// },
129+
// {
130+
// $count: 'count'
131+
// }
132+
// ]
133+
// }
134+
// }
135135
])
136136
.toArray();
137137
return result[0] as event_types.ListCurrentConnectionsResponse;

0 commit comments

Comments
 (0)