Skip to content

Commit

Permalink
Merge pull request #40 from smartive/fix/db-generation
Browse files Browse the repository at this point in the history
feat: Actually fix db generation
  • Loading branch information
nicola-smartive authored Aug 24, 2023
2 parents b083455 + e7e2416 commit aac775d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const getFieldOutputType = (field: ModelField) => {
// Relations are stored as ids
return 'string';
case 'enum':
return field.typeName + field.list ? '[]' : '';
return field.typeName + (field.list ? '[]' : '');
case 'raw':
throw new Error(`Raw fields are not in the db.`);
default:
Expand Down

0 comments on commit aac775d

Please sign in to comment.