@happychef/algorithm 1.2.7 → 1.2.8

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ PR 2:
2
+ ADDED:
3
+ - Modified the `getAvailableTimeblocks.js` file to change the default value of `uurOpVoorhand` from 4 hours to 0 hours, enabling immediate bookings when the field is not explicitly set in general settings.
4
+
5
+ REMOVED:
6
+ - No functions, features, or code were removed; only a configuration default value was updated.
7
+
8
+ ---
@@ -32,7 +32,7 @@ function parseDateTimeInTimeZone(dateStr, timeStr, timeZone) {
32
32
  */
33
33
  function getAvailableTimeblocks(data, dateStr, reservations, guests, blockedSlots = [], giftcard = null, isAdmin = false) {
34
34
  // Get 'uurOpVoorhand' from general settings
35
- let uurOpVoorhand = 4;
35
+ let uurOpVoorhand = 0;
36
36
  if (
37
37
  data['general-settings'] &&
38
38
  data['general-settings'].uurOpVoorhand &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happychef/algorithm",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Restaurant and reservation algorithm utilities",
5
5
  "main": "index.js",
6
6
  "author": "happy chef",