Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "create listings" for the admin page #9

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jolynleow2301
Copy link
Collaborator

No description provided.

@jolynleow2301 jolynleow2301 self-assigned this Dec 14, 2024
Copy link
Contributor

@damiancxliew damiancxliew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates Jolyn. Can I ask for your help to fetch new changes and make changes to the following?

  1. For your apiRequest in "CreateListing.tsx", please change from "apiRequest("listings", "POST", "register",...)" to "apiRequest("product", "POST", "create", ....)".

  2. From the data you submit to the apiRequest, I see that you are submitting these data
    "title,
    description,
    images,
    sizingChart,
    specifications,
    deliveryMethods,
    collectionInfo,"
    to the database, thus please help to ensure you make amendments to the validation schema in "products.js" file under "server/src/models/products.js" to ensure there is no error when writing the data to the database.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants