@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
|
|