@tmlmobilidade/interfaces 20260615.923.29 → 20260615.953.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -264,12 +264,12 @@ export function ridesPipelineSeenStatus({ filter } = {}) {
|
|
|
264
264
|
}
|
|
265
265
|
export function ridesPipelineTicketingStatus({ filter } = {}) {
|
|
266
266
|
const pipeline = [];
|
|
267
|
-
if (filter?.ticketing_status?.length)
|
|
267
|
+
if (!filter?.ticketing_status?.length)
|
|
268
268
|
return pipeline;
|
|
269
269
|
const includesHasTicketing = filter.ticketing_status.includes('has_ticketing');
|
|
270
270
|
const includesNoTicketing = filter.ticketing_status.includes('no_ticketing');
|
|
271
271
|
// If both are present, match all documents (no filter needed)
|
|
272
|
-
if (includesHasTicketing &&
|
|
272
|
+
if (includesHasTicketing && includesNoTicketing)
|
|
273
273
|
return pipeline;
|
|
274
274
|
if (includesHasTicketing) {
|
|
275
275
|
pipeline.push({ $match: { apex_validations_qty: { $gte: 1 } } });
|