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

Issue of fixing all related to the roles #105

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Evaristekanova
Copy link
Collaborator

What does this PR do?

  • add role to admin
  • add role to vendor
  • add role to customer

issue[fix roles]

@vercel
Copy link

vercel bot commented May 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ecommerce-app-legends-bn ❌ Failed (Inspect) May 14, 2023 7:55am

@@ -7,7 +7,7 @@ export const createAdmin = asyncWrapper(async (req, res) => {
req.body;

const hashedPassword = await hashPassword(password);
let newRole = await db.role.create({
let newRole = await db.role.findOne({
Copy link

Choose a reason for hiding this comment

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

Delete ·· prettier/prettier

@Evaristekanova Evaristekanova changed the title adding role id in getting all users response Issue of fixing all related to the roles May 14, 2023
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.

1 participant