From c298cbc90d2e93b5c0ff217178083e31a01cc544 Mon Sep 17 00:00:00 2001 From: Sasha <64744993+r1tsuu@users.noreply.github.com> Date: Thu, 12 Dec 2024 21:49:32 +0200 Subject: [PATCH] chore: deflake postgres and sqlite integration joins test (#9939) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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() ``` --- test/joins/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/joins/config.ts b/test/joins/config.ts index e37474b2754..f0587237cb6 100644 --- a/test/joins/config.ts +++ b/test/joins/config.ts @@ -162,7 +162,7 @@ export default buildConfigWithDefaults({ { name: 'category', type: 'relationship', - relationTo: restrictedCategoriesSlug, + relationTo: categoriesJoinRestrictedSlug, }, ], },