@dynamatix/cat-shared 0.0.88 → 0.0.89
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.
|
@@ -103,6 +103,7 @@ function applyAuditMiddleware(schema, collectionName) {
|
|
|
103
103
|
// Per-field logs
|
|
104
104
|
if (auditConfig.fields?.length) {
|
|
105
105
|
for (const field of auditConfig.fields) {
|
|
106
|
+
let lookupName;
|
|
106
107
|
const newValue = doc[field];
|
|
107
108
|
if (field.endsWith('Lid')) {
|
|
108
109
|
const newlookupDoc = await mongoose.models['Lookup'].findById(newValue).lean();
|