Skip to content

Commit 7d7e740

Browse files
fix: db types array (#369)
Co-authored-by: Nicola Marcacci Rossi <nicola@smartive.ch>
1 parent 50a25fe commit 7d7e740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const getFieldType = (field: EntityField, dateLibrary: DateLibrary, input?: bool
137137
const kind = field.kind;
138138
switch (kind) {
139139
case 'json':
140-
return field.type;
140+
return field.type + (field.list ? '[]' : '');
141141
case 'relation':
142142
// Relations are stored as ids
143143
return 'string';

0 commit comments

Comments
 (0)