picker-db 4.3.9 → 4.3.10

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.
@@ -23,7 +23,7 @@ const ReviewSchema = require("../schemas/review");
23
23
  const BookingRequestSchema = require("../schemas/bookingRequest");
24
24
  const BookingLiteSchema = require("../schemas/bookingsLite");
25
25
  const MiniBookingSchema = require("../schemas/miniBooking");
26
- const DriverDetailsSchema = require("../schemas/driverDetails");
26
+ const BookingDriverDetailsSchema = require("../schemas/bookingDriverDetails");
27
27
 
28
28
  /** @param {import("mongoose")} connection */
29
29
  module.exports = (connection) => {
@@ -53,6 +53,6 @@ module.exports = (connection) => {
53
53
  ReferralUsage: connection.model("ReferralUsage", ReferralUsageSchema(connection)),
54
54
  Review: connection.model("Review", ReviewSchema(connection)),
55
55
  MiniBooking: connection.model("MiniBooking", MiniBookingSchema(connection)),
56
- DriverDetails: connection.model("DriverDetails", DriverDetailsSchema(connection)),
56
+ BookingDriverDetails: connection.model("BookingDriverDetails", BookingDriverDetailsSchema(connection)),
57
57
  };
58
58
  };
@@ -1,11 +1,11 @@
1
1
  /** @param {import("mongoose")} connection */
2
2
  module.exports = (connection) => {
3
- const DriverDetailsSchema = new connection.base.Schema({
3
+ const BookingDriverDetailsSchema = new connection.base.Schema({
4
4
  bookingID: { type: connection.base.Schema.ObjectId, required: true },
5
5
  pinCode: { type: String },
6
6
  publicPhone: { type: String },
7
7
  createdAt: { type: Date },
8
8
  });
9
9
 
10
- return DriverDetailsSchema;
10
+ return BookingDriverDetailsSchema;
11
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.3.9",
3
+ "version": "4.3.10",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {