@pisell/pisellos 0.0.419 → 0.0.420

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.
@@ -4272,7 +4272,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
4272
4272
  if (res.usable && !m.onlyComputed) {
4273
4273
  isAnyTimeSliceUseable = true;
4274
4274
  if (resource.type === 'multiple') {
4275
- availableCount += m.capacity;
4275
+ availableCount += res.remainingCapacity;
4276
4276
  } else {
4277
4277
  availableCount += 1;
4278
4278
  }
@@ -2974,7 +2974,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
2974
2974
  if (res2.usable && !m.onlyComputed) {
2975
2975
  isAnyTimeSliceUseable = true;
2976
2976
  if (resource.type === "multiple") {
2977
- availableCount += m.capacity;
2977
+ availableCount += res2.remainingCapacity;
2978
2978
  } else {
2979
2979
  availableCount += 1;
2980
2980
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.419",
4
+ "version": "0.0.420",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",