Skip to content

Commit 0333b75

Browse files
committed
update
1 parent d4bd8ac commit 0333b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language/src/validators/function-invocation-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class FunctionInvocationValidator implements AstValidator<Express
113113
}
114114

115115
private isValidationAttribute(attr: DataModelAttribute | DataFieldAttribute) {
116-
return attr.decl.ref?.attributes.some((attr) => attr.decl.$refText === '@@@validation');
116+
return !!attr.decl.ref?.attributes.some((attr) => attr.decl.$refText === '@@@validation');
117117
}
118118

119119
private validateArgs(funcDecl: FunctionDecl, args: Argument[], accept: ValidationAcceptor) {

0 commit comments

Comments
 (0)