@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 +6 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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,
|