@7365admin1/core 3.32.2-staging.46 → 3.32.2-staging.47
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/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7715,6 +7715,9 @@ interface residentFormEntry {
|
|
|
7715
7715
|
fields: Record<string, any>;
|
|
7716
7716
|
remarks?: string;
|
|
7717
7717
|
managementValues?: Record<string, any>;
|
|
7718
|
+
createdAt?: Date;
|
|
7719
|
+
updatedAt?: Date | null;
|
|
7720
|
+
deletedAt?: Date | null;
|
|
7718
7721
|
}
|
|
7719
7722
|
declare const residentFormEntry: Joi.ObjectSchema<any>;
|
|
7720
7723
|
|
package/dist/index.js
CHANGED
|
@@ -70697,6 +70697,7 @@ function useFormEntryRepo() {
|
|
|
70697
70697
|
value.site = new import_mongodb154.ObjectId(value.site);
|
|
70698
70698
|
value.org = new import_mongodb154.ObjectId(value.org);
|
|
70699
70699
|
value.userId = new import_mongodb154.ObjectId(value.userId);
|
|
70700
|
+
value.createdAt = value.createdAt ?? /* @__PURE__ */ new Date();
|
|
70700
70701
|
const res = await collection.insertOne(value, { session });
|
|
70701
70702
|
return res.insertedId;
|
|
70702
70703
|
} catch (error) {
|