payservedb 4.7.9 → 4.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": "4.7.9",
3
+ "version": "4.8.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -32,7 +32,7 @@ const commonAreaUtilityAlertSchema = new mongoose.Schema({
32
32
  }, { timestamps: true });
33
33
 
34
34
  // Compound index for efficient querying
35
- alertSchema.index({ facilityId: 1, date: 1, utilityType: 1 });
35
+ commonAreaUtilityAlertSchema.index({ facilityId: 1, date: 1, utilityType: 1 });
36
36
 
37
37
  const CommonAreaUtilityAlert = mongoose.model('CommonAreaUtilityAlert', commonAreaUtilityAlertSchema);
38
38
  module.exports = CommonAreaUtilityAlert;
@@ -32,6 +32,7 @@ const facilitySchema = new mongoose.Schema({
32
32
  expense: { type: Boolean, },
33
33
  campaign: { type: Boolean, },
34
34
  procurement: { type: Boolean, },
35
+ accounts: { type: Boolean, },
35
36
  },
36
37
 
37
38
  logo: {