joye-backend-utility 5.1.5 → 5.1.6

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.
@@ -162,6 +162,19 @@ const User = new mongoose_1.Schema({
162
162
  default: 0,
163
163
  required: false,
164
164
  },
165
+ lastStreakWeek: {
166
+ type: Number,
167
+ required: false,
168
+ },
169
+ lastCardCycle: {
170
+ // TO identify what was the last cycle
171
+ // Value in 1, 2, 3
172
+ // 1: Mon Wed
173
+ // 2: Tue Thu
174
+ // 3: Wed Fri
175
+ type: Number,
176
+ required: false,
177
+ },
165
178
  });
166
179
  User.index({ botDetails: 1, preferredTimezone: -1 }, {
167
180
  unique: false,
@@ -17,12 +17,12 @@ const userJoyLevelQa = new mongoose_1.Schema({
17
17
  required: true,
18
18
  },
19
19
  question: {
20
- // If value if "Brew" then it will be treated as entry from brews table
20
+ // If value is "Brew" then it will be treated as entry from brews table
21
21
  type: String,
22
22
  required: true,
23
23
  },
24
24
  answer: {
25
- // If value if "Brew" then it will be treated as entry from brews table
25
+ // If value is "Brew" then it will be treated as entry from brews table
26
26
  type: String,
27
27
  required: true,
28
28
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "5.1.5",
3
+ "version": "5.1.6",
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",