prisma seed added
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit

This commit is contained in:
tusuii
2026-02-25 00:09:52 +05:30
parent c744d87016
commit f951b0b970

View File

@@ -74,7 +74,7 @@ async function main() {
for (const categoryData of categories) { for (const categoryData of categories) {
await prisma.category.upsert({ await prisma.category.upsert({
where: { slug: categoryData.slug }, where: { unique_slug_per_parent: { slug: categoryData.slug, parentId: null } },
update: {}, update: {},
create: categoryData, create: categoryData,
}); });