payservedb 5.8.0 → 5.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "5.8.0",
3
+ "version": "5.8.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -161,8 +161,11 @@ const cashPaymentSchema = new mongoose.Schema(
161
161
  fileId: mongoose.Schema.Types.ObjectId,
162
162
  fileName: String,
163
163
  fileType: String,
164
+ filePath: String,
164
165
  uploadDate: Date,
165
- uploadedBy: mongoose.Schema.Types.ObjectId
166
+ uploadedBy: mongoose.Schema.Types.ObjectId,
167
+ size: Number,
168
+ originalName: String
166
169
  }
167
170
  ],
168
171
  metadata: {
@@ -204,7 +207,7 @@ cashPaymentSchema.index({ 'client.clientId': 1, 'approvalStatus': 1 });
204
207
 
205
208
  // Add virtual properties
206
209
  cashPaymentSchema.virtual('clientFullName').get(function () {
207
- return `${this.client.firstName} ${this.client.lastName}`;
210
+ return ${ this.client.firstName } ${ this.client.lastName };
208
211
  });
209
212
 
210
213
  // Add instance methods