@vibe-flats/booking-engine-common-server 1.0.95 → 1.0.96

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.
@@ -80,6 +80,7 @@ export interface UnitDocument extends mongoose.Document {
80
80
  createdAt: Date;
81
81
  updatedAt: Date;
82
82
  isTrue: boolean;
83
+ rating: number;
83
84
  reviews: {
84
85
  body: string;
85
86
  isPublic: boolean;
@@ -118,6 +118,7 @@ const schema = new mongoose_1.default.Schema({
118
118
  },
119
119
  availableFrom: { type: Date, required: false },
120
120
  isTrue: { type: Boolean, required: true, default: true },
121
+ rating: { type: Number, required: false },
121
122
  reviews: {
122
123
  type: [
123
124
  {
@@ -135,11 +136,13 @@ const schema = new mongoose_1.default.Schema({
135
136
  rating: { type: Number, required: true }
136
137
  }
137
138
  ],
138
- required: false
139
+ required: false,
140
+ _id: false
139
141
  }
140
142
  }
141
143
  ],
142
- required: false
144
+ required: false,
145
+ _id: false
143
146
  }
144
147
  }, {
145
148
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",