Skip to content

Commit

Permalink
Fix adding image
Browse files Browse the repository at this point in the history
  • Loading branch information
ML-Chen committed Apr 29, 2020
1 parent f6dc031 commit 539cd8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/models/Listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const listingSchema = new mongoose.Schema({
remSpace: { type: Number, required: true },
startDate: { type: Date, default: new Date() },
endDate: { type: Date, default: new Date(2200, 1, 1) },
price: { type: Number, required: true }
price: { type: Number, required: true },
image: { type: String }
}, { timestamps: true });

listingSchema.statics.construct = async function (hostId: any, lat: number, lon: number, capacity: number, startDate: Date, endDate: Date, price: number, image: string): Promise<ListingDocument> {
Expand Down

0 comments on commit 539cd8d

Please sign in to comment.