From 366149e984adb1a7c39505a5924f04d5eae167c6 Mon Sep 17 00:00:00 2001 From: Daniel Adu-Gyan <26229521+danieladugyan@users.noreply.github.com> Date: Wed, 21 Aug 2024 21:09:07 +0200 Subject: [PATCH] Update booking request seeding to include bookables --- src/database/seed/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/database/seed/main.ts b/src/database/seed/main.ts index d0533c295..e8344f5d2 100644 --- a/src/database/seed/main.ts +++ b/src/database/seed/main.ts @@ -35,7 +35,11 @@ const main = async () => { await seed.doorAccessPolicy((x) => x(50)); await seed.bookable(BOOKABLES); - await seed.bookingRequest((x) => x(25)); + await seed.bookingRequest((x) => + x(25, { + _booking_requests_bookables: (x) => x({ min: 1, max: 5 }), + }), + ); await seed.committee( COMMITTEES.map((committee) => ({