vhp-mongo-models 1.3.0 → 1.3.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.
@@ -7,7 +7,7 @@ module.exports = [
7
7
  access:{type:Array,default:[]}
8
8
  },
9
9
  {
10
- toJSON: { virtuals: true },
11
- toObject: { virtuals: true }
10
+ //toJSON: { virtuals: true },
11
+ //toObject: { virtuals: true }
12
12
  }
13
13
  ]
@@ -16,7 +16,7 @@ module.exports=[
16
16
  permissions:{type:Array,default:[]}
17
17
  },
18
18
  {
19
- toJSON: { virtuals: true },
20
- toObject: { virtuals: true }
19
+ //toJSON: { virtuals: true },
20
+ //toObject: { virtuals: true }
21
21
  }
22
22
  ]
@@ -1,7 +1,8 @@
1
1
  const { Schema } = require('mongoose');
2
2
 
3
- const UserSetting = new Schema(...require('./schemas/usersetting.js'));
3
+ //const UserSetting = new Schema(...require('./schemas/usersetting.js'));
4
4
 
5
+ /*
5
6
  UserSetting.virtual('profile',{
6
7
  ref:'UserProfile',
7
8
  localField:'type',
@@ -12,13 +13,13 @@ UserSetting.virtual('employee',{
12
13
  localField:'empID',
13
14
  foreignField:'empID'
14
15
  })
15
-
16
- const UserProfile = new Schema(...require('./schemas/userprofile.js'))
16
+ */
17
+ //const UserProfile = new Schema(...require('./schemas/userprofile.js'))
17
18
 
18
19
  module.exports = {
19
20
  User:new Schema(...require('./schemas/user.js')),
20
- UserSetting:UserSetting,
21
- UserProfile:UserProfile,
21
+ UserSetting:new Schema(...require('./schemas/usersetting.js')),
22
+ UserProfile:new Schema(...require('./schemas/userprofile.js')),
22
23
  App:new Schema(...require('./schemas/app.js')),
23
24
  General:new Schema(...require('./schemas/general.js')),
24
25
  Group:new Schema(...require('./schemas/group.js'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhp-mongo-models",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "productName": "VHP Mongo Models",
5
5
  "description": "Mongo Models library to setup Mongoose Schemas",
6
6
  "author": "VHPim",