apna-college / wanderlust

95 stars 92 forks source link

data inconsistency in data.js file #16

Open ajayNemaliga opened 3 months ago

ajayNemaliga commented 3 months ago

in the listing collection schema the type of image is String but in the data.js file the image type is object

Kanakuppi commented 2 weeks ago

In listing collection schema you define image as follow image:{ filename: { type: String, default: 'listingimage' }, url: { type: String, default:"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter", set: (v) => v === ""?"https://www.istockphoto.com/photo/exterior-of-modern-home-gm169821670-26945756?utm_campaign=srp_photos_top&utm_content=https%3A%2F%2Funsplash.com%2Fs%2Fphotos%2Fhome-design-from-outside%3Flicense%3Dfree&utm_medium=affiliate&utm_source=unsplash&utm_term=home+design+from+outside%3A%3Areduced-affiliates%3Aquarter":v, } }