apna-college / wanderlust

95 stars 91 forks source link

Data.js different from the one used in Delta 2.0 #5

Closed Aadil3393 closed 7 months ago

Aadil3393 commented 7 months ago

Dear Maintainers,

Hope you are doing well!

I wanted to bring to your notice that the data.js file that is being used is different from the one that is used Delta 2.0 course. The image property of the schema in course is set to type String and accepts a URL.Whereas in the file, Image property accepts an object and URL is a property of it. Request you to please update the file so that there is no confusion while studying for future batches.

Thank you so much! Aadil Mohan

data.js in repo image

data.js in tutorial image

anuj-bhatia commented 7 months ago

Thanks for reporting this issue i was scratching my head over it for the past few minutes myself thinking i made an error somewhere. Fix for the issue: I changed the schema in the listing.js file to match the data.js in the repo

apna-college-schema-issue

Aadil3393 commented 7 months ago

Thank you so much!

Abhinandan-Sah commented 7 months ago

I have just found the solution. There should be image of type: Object instead of type: String. Hope, @apna-college and maintainers will solve this issue soon. So, that the student will not face any problem.