![aherleym](https://github.com/10d3/10d3/raw/7592e308043055570b8f0521c586493fbd6f2a5b/0d8c6a27b4b039d5b9cfe8aa4777766d.png)
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,
});
const data = plans.data;
for (const element of data) {
await prisma.plan.upsert({
where: {
productPriceId: element.id,
},
update: {
productId: element.product as string,
price: element.amount as number,
interval: element.interval,
intervalCount: element.interval_count,
},
create: {
productPriceId: element.id,
productId: element.product as string,
price: element.amount as number,
interval: element.interval,
intervalCount: element.interval_count,
},
});
}