|
@@ -34,6 +34,8 @@ class DisclosureService extends CrudService {
|
|
|
},
|
|
|
{ $match: { 'report.0': { $exists: true } } },
|
|
|
{ $sort: { 'meta.createdAt': -1 } },
|
|
|
+ { $project: { report: 0 } },
|
|
|
+ { $addFields: { has_report: true } },
|
|
|
];
|
|
|
const ctotal = [
|
|
|
...condition,
|