payservedb 7.8.1 → 7.8.3

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/index.js CHANGED
@@ -199,8 +199,9 @@ const models = {
199
199
  PowerMeterManufacturer: require("./src/models/powerMetersManufacturer"),
200
200
  PowerMeterMonthlyReading: require("./src/models/powerMeterMonthlyReading"),
201
201
  PowerMeterSettings: require("./src/models/powerMeterSettings"),
202
+ PowerPrepaidDebit: require("./src/models/power_prepaid_debits"),
203
+ PowerPrepaidCredit: require("./src/models/power_prepaid_credits"),
202
204
  FacilityWalletTransactionsMetadata: require("./src/models/facilityWalletTransactionsMetadata"),
203
- PowerMeterCustomerAccount: require("./src/models/powerMeterCustomerAccount"),
204
205
  SmsNotification: require("./src/models/sms_balance_notification"),
205
206
  NegativeBalance: require("./src/models/water_meter_negative_amounts"),
206
207
  MasterWorkplan: require("./src/models/master_workplan"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "7.8.1",
3
+ "version": "7.8.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
3
3
  const powerPrepaidCreditSchema = new mongoose.Schema({
4
4
  accountId: {
5
5
  type: mongoose.Schema.Types.ObjectId,
6
- ref: 'PowerMeterCustomerAccount',
6
+ ref: 'PowerMeterAccount',
7
7
  required: true,
8
8
  },
9
9
  meterId: {
@@ -3,7 +3,7 @@ const mongoose = require('mongoose');
3
3
  const powerPrepaidDebitSchema = new mongoose.Schema({
4
4
  accountId: {
5
5
  type: mongoose.Schema.Types.ObjectId,
6
- ref: 'PowerMeterCustomerAccount',
6
+ ref: 'PowerMeterAccount',
7
7
  required: true,
8
8
  },
9
9
  meterId: {