prisma seed added
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit
Some checks failed
eCommerce-backend/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -74,7 +74,7 @@ async function main() {
|
||||
|
||||
for (const categoryData of categories) {
|
||||
await prisma.category.upsert({
|
||||
where: { slug: categoryData.slug },
|
||||
where: { unique_slug_per_parent: { slug: categoryData.slug, parentId: null } },
|
||||
update: {},
|
||||
create: categoryData,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user