@justair/justair-library 4.8.25 → 4.8.26
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/package.json
CHANGED
|
@@ -158,6 +158,7 @@ measurementsSchema.pre("findOneAndDelete", async function () {
|
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
// Pre-hook to log multiple document deletions
|
|
161
|
+
/*
|
|
161
162
|
measurementsSchema.pre("deleteMany", async function () {
|
|
162
163
|
console.log("deleteMany pre-hook triggered");
|
|
163
164
|
const docsToDelete = await this.model.find(this.getFilter()).lean();
|
|
@@ -183,6 +184,7 @@ measurementsSchema.pre("deleteMany", async function () {
|
|
|
183
184
|
await Audit.insertMany(auditLogs);
|
|
184
185
|
}
|
|
185
186
|
});
|
|
187
|
+
*/
|
|
186
188
|
|
|
187
189
|
// Pre-hook to log a single document deletion (for deleteOne)
|
|
188
190
|
measurementsSchema.pre("deleteOne", async function () {
|