-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat(proaws): events as products #177
Conversation
joelhooks
commented
May 12, 2024
•
edited
Loading
edited
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
clicking the event i the product from the list links to a bad place
@@ -189,8 +189,6 @@ export function defineRulesForPurchases( | |||
can('read', 'Content') | |||
} | |||
|
|||
console.log({ rules }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed a bunch of these, still a lot more
where: (products, { eq, and }) => | ||
and(eq(products.status, 1), eq(products.type, 'self-paced')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the /products page I only want to show self-paced and not live
if (item.type === 'event') { | ||
router.push(`/events/${item.id}/edit`) | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
events are special