A passionate fullstack developer from Haiti
- Iโm currently working on AlloBillet
- Iโm currently learning Anything I find interesting
- All of my projects are available at herley.netlify.app
- I regularly (not really) write articles on herley.netlify.app/blog
- Ask me about React, NextJS, Django, NodeJS, TypeScript, TailWindCss
- How to reach me [email protected]
- Know about my experiences here
- I've already build my own NextJS Boilerplate
- Fun fact I think I'm funny
const plans = await stripe.plans.list({
active: true,
});
for (const plan of plans.data) {
await prisma.plan.upsert({
where: {
productPriceId: plan.id,
},
update: {
productId: plan.product as string,
price: plan.amount as number,
interval: plan.interval,
intervalCount: plan.interval_count,
},
create: {
productPriceId: plan.id,
productId: plan.product as string,
price: plan.amount as number,
interval: plan.interval,
intervalCount: plan.interval_count,
},
});
}