Skip to content

Commit

Permalink
fix: unmatching schema in hasMany integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
bombguy committed Nov 28, 2022
1 parent 2bcdf19 commit 44ca4fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export default function CreateFormTests() {
JSON.stringify({
...record,
HasOneUser: await record.HasOneUser,
HasManyStudents: record.HasManyStudents,
BelongsToOwner: await record.BelongsToOwner,
HasManyStudents: await record.HasManyStudents?.toArray(),
}),
);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,8 @@ export const schema = {
targetName: 'allSupportedFormFieldsOwnerId',
},
},
HasManyStudent: {
name: 'HasManyStudent',
HasManyStudents: {
name: 'HasManyStudents',
isArray: true,
type: {
model: 'Student',
Expand Down
2 changes: 1 addition & 1 deletion packages/test-generator/lib/models/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ export default {
isArrayNullable: true,
association: {
connectionType: 'HAS_MANY',
associatedWith: 'allSupportedFormFieldsHasManyStudentsId',
associatedWith: 'allSupportedFormFieldsID',
},
},
ManyToManyTags: {
Expand Down

0 comments on commit 44ca4fb

Please sign in to comment.