Skip to content

Commit f8bf752

Browse files
committed
remove unused param
1 parent 4f78827 commit f8bf752

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/generate-class.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default async function generateClass(
1818
project: Project,
1919
outputDir: string,
2020
model: PrismaDMMF.Model,
21-
dmmf: PrismaDMMF.Document,
2221
) {
2322
const dirPath = path.resolve(outputDir, 'models');
2423
const filePath = path.resolve(dirPath, `${model.name}.model.ts`);

src/prisma-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function generate(options: GeneratorOptions) {
3939
}
4040

4141
prismaClientDmmf.datamodel.models.forEach((model) =>
42-
generateClass(project, outputDir, model, prismaClientDmmf),
42+
generateClass(project, outputDir, model),
4343
);
4444

4545
const helpersIndexSourceFile = project.createSourceFile(

0 commit comments

Comments
 (0)