Skip to content

Commit aea1acb

Browse files
committed
update
1 parent efa1768 commit aea1acb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/sdk/src/prisma/prisma-schema-generator.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ import {
1818
InvocationExpr,
1919
isArrayExpr,
2020
isDataModel,
21-
isExpression,
2221
isInvocationExpr,
2322
isLiteralExpr,
24-
isModel,
2523
isNullExpr,
2624
isReferenceExpr,
2725
isStringLiteral,
@@ -271,12 +269,7 @@ export class PrismaSchemaGenerator {
271269
return false;
272270
}
273271

274-
return AstUtils.streamAst(expr).some((node) => isExpression(node) && isAuthInvocation(node));
275-
}
276-
277-
private isFromPlugin(node: AstNode | undefined) {
278-
const model = AstUtils.getContainerOfType(node, isModel);
279-
return !!model && !!model.$document && model.$document.uri.path.endsWith('plugin.zmodel');
272+
return AstUtils.streamAst(expr).some(isAuthInvocation);
280273
}
281274

282275
private isInheritedFromDelegate(field: DataField, contextModel: DataModel) {

0 commit comments

Comments
 (0)