Skip to content

Commit

Permalink
fix(api): add field name
Browse files Browse the repository at this point in the history
  • Loading branch information
htoann committed Nov 1, 2022
1 parent 4595aaa commit 5b2f27f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/hotel/hotelModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const HotelSchema = new mongoose.Schema({
type: String,
required: true,
},
name: {
type: String,
required: true,
},
type: {
type: String,
enum: ["hotels", "apartments", "resorts", "villas", "cabins"],
Expand Down

0 comments on commit 5b2f27f

Please sign in to comment.