joye-backend-utility 5.1.19 → 5.1.21

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.
@@ -157,4 +157,7 @@ const Brew = new mongoose_1.Schema({
157
157
  Brew.index({ userId: 1, date: -1 }, {
158
158
  unique: false,
159
159
  });
160
+ Brew.index({ userId: 1, creationDate: -1 }, {
161
+ unique: false,
162
+ });
160
163
  exports.BrewSchema = Brew;
@@ -111,5 +111,9 @@ const MasterEmotions = new mongoose_1.Schema({
111
111
  type: String,
112
112
  required: false,
113
113
  },
114
+ podcasts: {
115
+ type: Array,
116
+ required: false,
117
+ },
114
118
  });
115
119
  exports.MasterEmotionsSchema = MasterEmotions;
@@ -34,6 +34,7 @@ const User = new mongoose_1.Schema({
34
34
  email: {
35
35
  type: String,
36
36
  required: false,
37
+ index: true,
37
38
  },
38
39
  displayName: {
39
40
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "5.1.19",
3
+ "version": "5.1.21",
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",