From 9db9500cb47eeca80eda4f8a619306b9296671f7 Mon Sep 17 00:00:00 2001 From: Jessica Ho Date: Sat, 24 Feb 2024 17:30:48 -0800 Subject: [PATCH] create house connections after user creations --- prisma/seed.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 4185fec..0f71430 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -12,7 +12,10 @@ async function main() { ...[3, 4].map((userInd) => utils.createUserWithEmptyHousehold(userInd)), ...[2, 4, 6].map((userInd) => utils.createActiveSession(userInd)), utils.createUserWithEmptyHousehold(5), - utils.createUserWithKid(6), + utils.createUserWithKid(6) + ]); + + await Promise.all([ utils.createFriendRequest(4, 3), utils.createHouseholdConnection(3, 5), utils.createHouseholdInvite(5, 2)