joye-backend-utility 8.0.1 → 8.0.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.
@@ -11,6 +11,7 @@ const User = new mongoose_1.Schema({
11
11
  employeeId: {
12
12
  type: String,
13
13
  required: true,
14
+ index: true,
14
15
  },
15
16
  postPieScreen: {
16
17
  type: String,
@@ -60,6 +61,7 @@ const User = new mongoose_1.Schema({
60
61
  notificationDate: {
61
62
  type: String,
62
63
  required: false,
64
+ index: true,
63
65
  },
64
66
  notificationCount: {
65
67
  type: Number,
@@ -216,9 +218,12 @@ const User = new mongoose_1.Schema({
216
218
  index: true,
217
219
  },
218
220
  });
219
- User.index({ employeeId: 1 }, {
220
- unique: true,
221
- });
221
+ // User.index(
222
+ // { employeeId: 1 },
223
+ // {
224
+ // unique: true,
225
+ // },
226
+ // );
222
227
  User.index({ botDetails: 1, preferredTimezone: -1 }, {
223
228
  unique: false,
224
229
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
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",