Skip to content

Commit 10c2f7b

Browse files
committed
fix build
1 parent 93e6150 commit 10c2f7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schema/src/language-server/validator/datamodel-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export default class DataModelValidator implements AstValidator<DataModel> {
298298
// if both the field is array, then it's an implicit many-to-many relation
299299
if (!(field.type.array && oppositeField.type.array)) {
300300
[field, oppositeField].forEach((f) => {
301-
if (!this.isSelfRelation(f, thisRelation.name)) {
301+
if (!this.isSelfRelation(f)) {
302302
accept(
303303
'error',
304304
'Field for one side of relation must carry @relation attribute with both "fields" and "references"',

0 commit comments

Comments
 (0)