Skip to content

Commit 4505996

Browse files
committed
🐞 fix: switch nullability to correct state in input models
1 parent d9f5133 commit 4505996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/plain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function stringifyPlain(
125125

126126
if (!field.isRequired) {
127127
stringifiedType = wrapWithNullable(stringifiedType);
128-
if (isInputModelCreate) {
128+
if (isInputModelUpdate) {
129129
stringifiedType = wrapWithOptional(stringifiedType);
130130
madeOptional = true;
131131
}

0 commit comments

Comments
 (0)