jp-shared 1.0.10 → 1.0.12

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.
@@ -13,6 +13,8 @@ const {
13
13
  } = require("../../schemes/pendingJobPostStep4-scheme");
14
14
  const { validateReason } = require("../../utils");
15
15
  const { getDatabaseName } = require("../../constants");
16
+ const mongoose = require("mongoose");
17
+ const { ObjectId } = mongoose.Schema.Types;
16
18
 
17
19
  // Define the schema
18
20
  const schema = new mongoose.Schema(
@@ -37,9 +39,9 @@ const schema = new mongoose.Schema(
37
39
  type: pendingJobPostStep3Schema,
38
40
  required: [true, "Step 3 data is required"],
39
41
  },
40
- step4: {
41
- type: pendingJobPostStep4Schema,
42
- required: [true, "Step 4 data is required"],
42
+ paymentHistoryId: {
43
+ type: ObjectId,
44
+ required: [true, "paymentHistoryId is required"],
43
45
  },
44
46
  reason: {
45
47
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp-shared",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"