@dynamatix/cat-shared 0.0.92 → 0.0.93
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.
|
@@ -105,7 +105,7 @@ function applyAuditMiddleware(schema, collectionName) {
|
|
|
105
105
|
const contextId = context?.contextId;
|
|
106
106
|
|
|
107
107
|
const entityDescription = await resolveEntityDescription(doc, auditConfig);
|
|
108
|
-
|
|
108
|
+
let logs = [];
|
|
109
109
|
|
|
110
110
|
// Per-field logs
|
|
111
111
|
if (auditConfig.fields?.length) {
|
|
@@ -159,7 +159,7 @@ function applyAuditMiddleware(schema, collectionName) {
|
|
|
159
159
|
if (!auditConfig?.fields?.length) return;
|
|
160
160
|
|
|
161
161
|
const update = this.getUpdate();
|
|
162
|
-
|
|
162
|
+
let logs = [];
|
|
163
163
|
const context = getContext();
|
|
164
164
|
const userId = context?.userId || 'anonymous';
|
|
165
165
|
const contextId = context?.contextId;
|