File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments