From 5d51a826ea1db7285b8519d6d29399a466b0139c Mon Sep 17 00:00:00 2001 From: Weiko Date: Mon, 16 Dec 2024 15:47:09 +0100 Subject: [PATCH] fix demo seed conflicting with dev seed (#9087) We have conflicts which prevents us from running demo seed command after a database-reset or/and if dev seed has already been populated. This is because we are trying to create Tim user twice (but due to the insert()...onConflict() in the seed creation, it does not create the second one), for seed-dev and seed-demo . This PR fixes that by using the same user id, allowing us to use the same Tim apple for both dev/demo seeds Test Screenshot 2024-12-16 at 15 36 56 Screenshot 2024-12-16 at 15 37 17 --- .../twenty-server/src/database/typeorm-seeds/core/demo/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/database/typeorm-seeds/core/demo/users.ts b/packages/twenty-server/src/database/typeorm-seeds/core/demo/users.ts index b82c73c07b..2bc9cf84a3 100644 --- a/packages/twenty-server/src/database/typeorm-seeds/core/demo/users.ts +++ b/packages/twenty-server/src/database/typeorm-seeds/core/demo/users.ts @@ -7,7 +7,7 @@ const tableName = 'user'; export const DEMO_SEED_USER_IDS = { NOAH: '20202020-9e3b-46d4-a556-88b9ddc2b035', HUGO: '20202020-3957-4908-9c36-2929a23f8358', - TIM: '20202020-7169-42cf-bc47-1cfef15264b9', + TIM: '20202020-9e3b-46d4-a556-88b9ddc2b034', }; export const seedUsers = async (