@dynamatix/cat-shared 0.0.75 → 0.0.76

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.
@@ -126,7 +126,7 @@ async function updateContextAuditCount(contextId, count) {
126
126
  if(!contextId) return;
127
127
  const model = mongoose.models['Application'];
128
128
  const context = await model.findById(contextId);
129
- context.newAuditRecordsCount = (context.newAuditRecordsCount || 0) + (count ? count : 1);
129
+ context.newAuditRecordsCount = Number(context.newAuditRecordsCount || 0) + Number(count ? count : 1);
130
130
  await context.save();
131
131
  }
132
132
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"