Skip to content

Commit

Permalink
perf(generator): Rewrote most of the functionalities of the plugin.
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Removed the capacity to allow single schema file generation, removed relation fields entirely as they have no use in fastify.
  • Loading branch information
gelanderosh committed Jan 31, 2024
1 parent 23602c3 commit d31df99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/transformDMMF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function transformDMMF(
}: DMMF.Datamodel = dmmf.datamodel
const initialJSON = getInitialJSON()

const modelMetadata: {} = { enums }
const modelMetadata: object = { enums }

const modelDefinitionsMap: DefinitionMap[] = models.map(
getJSONSchemaModel(modelMetadata as ModelMetaData, transformOptions),
Expand Down

0 comments on commit d31df99

Please sign in to comment.