joye-backend-utility 7.2.10 → 7.2.11

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.
@@ -112,6 +112,7 @@ const UserAnalytic = new mongoose_1.Schema({
112
112
  required: false,
113
113
  },
114
114
  activity: {
115
+ // To show the data is a fallback data from Databricks cron execution
115
116
  type: Boolean,
116
117
  required: false,
117
118
  },
@@ -119,6 +120,11 @@ const UserAnalytic = new mongoose_1.Schema({
119
120
  type: Object,
120
121
  required: false,
121
122
  },
123
+ fallbackData: {
124
+ // To show the data is a fallback data from UI initiated /emotion-data request
125
+ type: Boolean,
126
+ required: false,
127
+ },
122
128
  });
123
129
  UserAnalytic.index({ employeeId: 1, weekNumber: -1, year: -1, date: -1 });
124
130
  UserAnalytic.index({ employeeId: 1, month: -1, year: -1, date: -1 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "7.2.10",
3
+ "version": "7.2.11",
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",