prisma-markdown
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -92,3 +92,5 @@ "use strict"; | ||
field.type === model.name); | ||
if (opposite === undefined || oppositeField === undefined) | ||
if (opposite === undefined || | ||
oppositeField === undefined || | ||
model === opposite) | ||
continue; | ||
@@ -95,0 +97,0 @@ const relations = [model, opposite].sort((x, y) => x.name.localeCompare(y.name)); |
{ | ||
"name": "prisma-markdown", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Prisma Markdown documents generator including ERD diagrams and comment descriptions", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -121,3 +121,7 @@ import { DMMF } from "@prisma/generator-helper"; | ||
); | ||
if (opposite === undefined || oppositeField === undefined) | ||
if ( | ||
opposite === undefined || | ||
oppositeField === undefined || | ||
model === opposite | ||
) | ||
continue; | ||
@@ -124,0 +128,0 @@ |
Sorry, the diff of this file is not supported yet
58882
925