flykup_model_development 3.1.79 → 3.1.82

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.
@@ -52,7 +52,18 @@ const liveStreamInteractionSchema = new mongoose.Schema({
52
52
  type: Number,
53
53
  default: 0
54
54
  },
55
+ firstJoinedAt: Date,
55
56
  lastSeenAt: Date,
57
+ lastLeftAt: Date,
58
+ sessionCount: {
59
+ type: Number,
60
+ default: 0
61
+ },
62
+ sessions: [{
63
+ joinedAt: Date,
64
+ leftAt: Date,
65
+ duration: Number
66
+ }],
56
67
  hasLiked: {
57
68
  type: Boolean,
58
69
  default: false
@@ -2,6 +2,8 @@ import mongoose from 'mongoose';
2
2
 
3
3
  const { Schema } = mongoose;
4
4
 
5
+
6
+
5
7
  const AdminSchema = new Schema(
6
8
  {
7
9
  name: { type: String, required: true },
@@ -116,7 +116,7 @@ paymentSchema.index({ 'sellerPayments.sellerId': 1 });
116
116
  paymentSchema.index({ 'sellerPayments.settlementStatus': 1 });
117
117
 
118
118
  const OrderPayment =
119
- mongoose.models.OrderPayment || mongoose.model('orderPayment', paymentSchema);
119
+ mongoose.models.orderPayment || mongoose.model('orderPayment', paymentSchema);
120
120
 
121
121
  export default OrderPayment;
122
122
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.79",
3
+ "version": "3.1.82",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,