@pisell/pisellos 2.2.113 → 2.2.115
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.
|
@@ -567,7 +567,7 @@ export var SalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
567
567
|
return leftStartAt - rightStartAt;
|
|
568
568
|
}); // 过滤掉没有 status 的 booking
|
|
569
569
|
normalizedBookings = normalizedBookings.filter(function (booking) {
|
|
570
|
-
return
|
|
570
|
+
return booking.status;
|
|
571
571
|
});
|
|
572
572
|
|
|
573
573
|
// 建立 resourceId -> bookings[] 倒排索引,加速资源匹配
|
|
@@ -414,7 +414,7 @@ var SalesImpl = class extends import_BaseModule.BaseModule {
|
|
|
414
414
|
const rightStartAt = this.toBookingDateTime(right.start_date, right.start_time).valueOf();
|
|
415
415
|
return leftStartAt - rightStartAt;
|
|
416
416
|
});
|
|
417
|
-
normalizedBookings = normalizedBookings.filter((booking) =>
|
|
417
|
+
normalizedBookings = normalizedBookings.filter((booking) => booking.status);
|
|
418
418
|
const bookingMap = /* @__PURE__ */ new Map();
|
|
419
419
|
normalizedBookings.forEach((booking) => {
|
|
420
420
|
if (!Array.isArray(booking.resources))
|