Skip to content

Commit 5e3e220

Browse files
committed
fix build
1 parent 6b1dab5 commit 5e3e220

File tree

1 file changed

+1
-2
lines changed
  • packages/schema/src/plugins/enhancer/enhance

1 file changed

+1
-2
lines changed

packages/schema/src/plugins/enhancer/enhance/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ReadonlyDeep } from '@prisma/generator-helper';
21
import { DELEGATE_AUX_RELATION_PREFIX } from '@zenstackhq/runtime';
32
import {
43
PluginError,
@@ -422,7 +421,7 @@ export type Enhanced<Client> =
422421
return dmmf;
423422
}
424423

425-
private shouldBeOptional(field: ReadonlyDeep<DMMF.SchemaArg>, dataModel: DataModel) {
424+
private shouldBeOptional(field: DMMF.SchemaArg, dataModel: DataModel) {
426425
const dmField = dataModel.fields.find((f) => f.name === field.name);
427426
if (!dmField) {
428427
return false;

0 commit comments

Comments
 (0)