jp-shared 1.0.25 → 1.0.27

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.
@@ -106,6 +106,10 @@ const paymentHistorySchema = new mongoose.Schema(
106
106
  type: String,
107
107
  default: null,
108
108
  },
109
+ jobId: {
110
+ type: String,
111
+ required: [true, "Job ID is required"],
112
+ },
109
113
  jobOfferDiscountPercentage: {
110
114
  type: Number,
111
115
  required: function () {
@@ -42,10 +42,10 @@ const schema = new mongoose.Schema(
42
42
  // message: "Invalid Plan ID format",
43
43
  // },
44
44
  // },
45
- jobId: {
46
- type: String,
47
- required: [true, "Job ID is required"],
48
- },
45
+ // jobId: {
46
+ // type: String,
47
+ // required: [true, "Job ID is required"],
48
+ // },
49
49
  paymentHistoryId: {
50
50
  type: ObjectId,
51
51
  required: [true, "Payment History ID is required"],
@@ -65,4 +65,4 @@ schema.index({ deleteAt: 1 }, { expireAfterSeconds: 0 });
65
65
  // Consider adding indexes for frequently queried fields
66
66
  schema.index({ recruiterId: 1 });
67
67
 
68
- module.exports = { RecruiterEmailOTPModel };
68
+ module.exports = RecruiterEmailOTPModel ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp-shared",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"