tango-api-schema 2.0.43 → 2.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.0.43",
3
+ "version": "2.0.44",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -22,5 +22,6 @@ const userAuth = new mongoose.Schema(
22
22
  timestamps: true,
23
23
  },
24
24
  );
25
+ userAuth.index( { createdAt: 1 }, { expires: '1d' })
25
26
 
26
27
  export default mongoose.model( 'userAuth', userAuth, 'userAuth');
@@ -24,10 +24,6 @@ const store = new mongoose.Schema(
24
24
  trim: true,
25
25
  required: true,
26
26
  },
27
- client: {
28
- type: mongoose.Schema.Types.ObjectId,
29
- required: true,
30
- },
31
27
  businessType: {
32
28
  type: String,
33
29
  },
@@ -18,7 +18,7 @@ const tangoTickets = new mongoose.Schema(
18
18
  hibernation:{
19
19
  type:Date
20
20
  },
21
- infraTicketDetails: {
21
+ ticketDetails: {
22
22
  issueIdentifiedDate:{
23
23
  type:Date
24
24
  },
@@ -53,7 +53,7 @@ const tangoTickets = new mongoose.Schema(
53
53
  default: 'firsttimeticket'
54
54
  }
55
55
  },
56
- infraActivity: [
56
+ ticketActivity: [
57
57
  {
58
58
  statusCheckAlertTime:{
59
59
  type: Date,