joye-backend-utility 6.0.2 → 6.0.4

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/README.md CHANGED
@@ -1,2 +1,14 @@
1
1
  # joye-backend-utility
2
2
  Joye backend utility for common functions and all the database related generic functions with database connection
3
+
4
+ Use below command login npm and publish new version
5
+
6
+ `
7
+ npm login
8
+ `
9
+
10
+ and then
11
+
12
+ `
13
+ npm publish
14
+ `
@@ -11,7 +11,6 @@ const User = new mongoose_1.Schema({
11
11
  employeeId: {
12
12
  type: String,
13
13
  required: true,
14
- index: true,
15
14
  },
16
15
  postPieScreen: {
17
16
  type: String,
@@ -199,6 +198,9 @@ const User = new mongoose_1.Schema({
199
198
  type: String,
200
199
  },
201
200
  });
201
+ User.index({ employeeId: 1 }, {
202
+ unique: true,
203
+ });
202
204
  User.index({ botDetails: 1, preferredTimezone: -1 }, {
203
205
  unique: false,
204
206
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "Joye backend utility for db functions and common functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",