goldstars-services 1.0.6 → 1.0.8

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.
@@ -21,6 +21,10 @@ var UserSchema = Schema({
21
21
  password: {
22
22
  type: String
23
23
  },
24
+ cedula: {
25
+ type: String,
26
+ unique: true
27
+ },
24
28
  firstName: {
25
29
  type: String,
26
30
  required: true
@@ -16,7 +16,7 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
16
16
  */
17
17
  var populateQueryUserData = userQuery => {
18
18
  return populateClientOfTrainer(userQuery.populate({
19
- path: "isDoctor.clientes",
19
+ path: "isTrainer.clientes",
20
20
  model: "User",
21
21
  select: _queries.QUERY_USER_SELECT
22
22
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstars-services",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "This is the services layer for GoldStars",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {