@avakado.ai/schemas 1.1.24 → 1.1.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakado.ai/schemas",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "description": "Canonical Mongo schemas, models, enums and index declarations shared by the Avakado services.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/src/models/Log.js CHANGED
@@ -21,6 +21,8 @@ const LogSchema = new Schema({
21
21
  });
22
22
  // add index to the log schema
23
23
  LogSchema.index({ user: 1, createdAt: -1 });
24
+ LogSchema.index({ business: 1, createdAt: -1 });
25
+ LogSchema.index({ level: 1, createdAt: -1 });
24
26
  LogSchema.index({ event: 1, createdAt: -1 });
25
27
  LogSchema.index({ category: 1, createdAt: -1 });
26
28
  LogSchema.index({ status: 1, createdAt: -1 });