@dynamatix/cat-shared 0.0.94 → 0.0.95

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.
@@ -179,15 +179,15 @@ function applyAuditMiddleware(schema, collectionName) {
179
179
  if (field.endsWith('Lid')) {
180
180
  const newlookupDoc = await mongoose.models['Lookup'].findById(newValue).lean();
181
181
  if (newlookupDoc) {
182
- lookupOldName = newlookupDoc.name;
182
+ lookupNewName = newlookupDoc.name;
183
183
  } else {
184
- lookupOldName = '';
184
+ lookupNewName = '';
185
185
  }
186
186
  const oldlookupDoc = await mongoose.models['Lookup'].findById(oldValue).lean();
187
187
  if (oldlookupDoc) {
188
- lookupNewName = oldlookupDoc.name;
188
+ lookupOldName = oldlookupDoc.name;
189
189
  } else {
190
- lookupNewName = '';
190
+ lookupOldName = '';
191
191
  }
192
192
  }
193
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"