@duvdu-v1/duvdu 1.1.12 → 1.1.14

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.
@@ -26,8 +26,8 @@ import { Schema } from 'mongoose';
26
26
  interface Iproject {
27
27
  project: {
28
28
  type: Schema.Types.ObjectId;
29
- ref: string;
30
29
  };
30
+ ref: string;
31
31
  }
32
32
  export declare const Project: import("mongoose").Model<Iproject, {}, {}, {}, import("mongoose").Document<unknown, {}, Iproject> & Iproject & {
33
33
  _id: import("mongoose").Types.ObjectId;
@@ -7,8 +7,9 @@ exports.Project = (0, mongoose_1.model)(model_names_1.MODELS.projects, new mongo
7
7
  project: {
8
8
  type: {
9
9
  type: mongoose_1.Schema.Types.ObjectId,
10
- ref: 'Any'
10
+ refPath: 'project.ref' // Dynamic reference based on project.ref field
11
11
  },
12
12
  ref: String
13
- }
13
+ },
14
+ ref: String
14
15
  }, { timestamps: true, collection: model_names_1.MODELS.projects }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [