jp-shared 1.0.24 → 1.0.26

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"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp-shared",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -171,7 +171,7 @@ const uploadFile = async (file, filePath) => {
171
171
 
172
172
  return new Promise((resolve, reject) => {
173
173
  stream.on("error", (err) => {
174
- logger.error("Error uploading file to Firebase Storage:", { err });
174
+ console.error("Error uploading file to Firebase Storage:", { err });
175
175
  reject(err);
176
176
  });
177
177
 
@@ -183,7 +183,7 @@ const uploadFile = async (file, filePath) => {
183
183
  });
184
184
  resolve(url);
185
185
  } catch (error) {
186
- logger.error("Error generating signed URL:", { error });
186
+ console.error("Error generating signed URL:", { error });
187
187
  reject(error);
188
188
  }
189
189
  });