@7365admin1/core 3.37.0 → 3.38.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d433685: VMS Checkout Bugfix
8
+
3
9
  ## 3.37.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -25918,7 +25918,7 @@ function usePersonRepo() {
25918
25918
  const data = await collection.find(query, { session }).limit(10).toArray();
25919
25919
  return data;
25920
25920
  } catch (error) {
25921
- throw new import_node_server_utils74.InternalServerError("Failed to find many persons.");
25921
+ throw new import_node_server_utils74.InternalServerError("Failed to find persons" + error);
25922
25922
  }
25923
25923
  }
25924
25924
  async function addFromVisitor(value, session) {
@@ -35867,7 +35867,7 @@ function useVisitorTransactionService() {
35867
35867
  value.checkIn = isNaN(parsed.getTime()) ? null : parsed;
35868
35868
  }
35869
35869
  const { nric = "", name = "", contact = "", plateNumber = "", email = "", site = "", type = "guest", company, createdBy } = value;
35870
- if (/^(guest|walk-in|contractor|delivery)$/.test(type)) {
35870
+ if (/^(guest|walk-in|contractor|delivery)$/.test(type) && !value.checkOut) {
35871
35871
  await addUpdateFromVisitor({
35872
35872
  nric,
35873
35873
  name,