payservedb 5.1.9 → 5.2.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.1.9",
3
+ "version": "5.2.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -190,6 +190,10 @@ const invoiceSchema = new mongoose.Schema(
190
190
  userId: { type: mongoose.Schema.Types.ObjectId, ref: "User" }
191
191
  }]
192
192
  },
193
+ invoiceUrl: {
194
+ type: String,
195
+ default: null
196
+ },
193
197
  // New fields for double entry accounts
194
198
  invoiceDoubleEntryAccount: {
195
199
  type: mongoose.Schema.Types.ObjectId,
@@ -199,7 +199,7 @@ const leaseAgreementSchema = new mongoose.Schema({
199
199
  editHistory: [
200
200
  {
201
201
  editedBy: {
202
- type: mongoose.Schema.Types.ObjectId,
202
+ type: mongoose.Schema.Types.Mixed,
203
203
  ref: 'User'
204
204
  },
205
205
  editedAt: { type: Date, default: Date.now },
@@ -1,7 +1,5 @@
1
1
  const mongoose = require('mongoose');
2
2
 
3
- const mongoose = require('mongoose');
4
-
5
3
  const dailyWaterMeterHistorySchema = new mongoose.Schema({
6
4
  meterId: {
7
5
  type: mongoose.Schema.Types.ObjectId,