joye-backend-utility 5.0.17 → 5.0.19
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/dist/schema/user.js +14 -1
- package/package.json +1 -1
package/dist/schema/user.js
CHANGED
|
@@ -156,7 +156,20 @@ const User = new mongoose_1.Schema({
|
|
|
156
156
|
},
|
|
157
157
|
consent: {
|
|
158
158
|
type: Boolean,
|
|
159
|
-
|
|
159
|
+
required: false,
|
|
160
|
+
},
|
|
161
|
+
consentTime: {
|
|
162
|
+
type: Number,
|
|
163
|
+
required: false,
|
|
164
|
+
},
|
|
165
|
+
badgeNumber: {
|
|
166
|
+
type: Number,
|
|
167
|
+
default: 0,
|
|
168
|
+
required: false,
|
|
169
|
+
},
|
|
170
|
+
includePreviousBadge: {
|
|
171
|
+
// Added this to detect when add previous badgeNumber breaking the streak
|
|
172
|
+
type: Boolean,
|
|
160
173
|
required: false,
|
|
161
174
|
},
|
|
162
175
|
});
|