Skip to content

Commit

Permalink
chore: deflake postgres and sqlite integration joins test (#9939)
Browse files Browse the repository at this point in the history
`relationTo` was specified incorrectly which led to 
```
  ● Joins Field › rEST API should not populate individual join by providing schemaPath=false

    error: insert or update on table "collection_restricted" violates foreign key constraint "collection_restricted_category_id_restricted_categories_id_fk"

      18 |       .returning()
      19 |   } else {
    > 20 |     result = await (db as TransactionPg).insert(table).values(values).returning()
```
  • Loading branch information
r1tsuu authored Dec 12, 2024
1 parent 5af71fb commit c298cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/joins/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default buildConfigWithDefaults({
{
name: 'category',
type: 'relationship',
relationTo: restrictedCategoriesSlug,
relationTo: categoriesJoinRestrictedSlug,
},
],
},
Expand Down

0 comments on commit c298cbc

Please sign in to comment.