@mac777/project-pinecone-models 1.1.21 → 1.1.22

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/dist/AuditLog.js CHANGED
@@ -22,7 +22,7 @@ var AuditStatus;
22
22
  AuditStatus["FAILURE"] = "FAILURE";
23
23
  })(AuditStatus || (exports.AuditStatus = AuditStatus = {}));
24
24
  const auditLogSchema = new mongoose_1.Schema({
25
- userId: { type: String, index: true },
25
+ userId: { type: String, ref: 'User', index: true },
26
26
  action: { type: String, required: true, index: true },
27
27
  category: {
28
28
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mac777/project-pinecone-models",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
package/src/AuditLog.ts CHANGED
@@ -42,7 +42,7 @@ export interface IAuditLog extends Document {
42
42
  }
43
43
 
44
44
  const auditLogSchema = new Schema<IAuditLog>({
45
- userId: { type: String, index: true },
45
+ userId: { type: String, ref: 'User', index: true },
46
46
  action: { type: String, required: true, index: true },
47
47
  category: {
48
48
  type: String,