feat: insights routing forms (#17583)

Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
sean-brydonandJoe Au-Yeung authored and GitHub committed 2024-11-15 14:54:51 -05:00
1 parent e85c0e1a85
commit 7ce5886b4f
34 files changed
+2762 -870

No files matched your search

+14
View File
@@ -633,6 +633,20 @@ export async function seedRoutingFormResponses(
routedFromRoutingFormReponse: { connect: { id: response.id } },
},
});
// Create some responses without a booking
await prisma.app_RoutingForms_FormResponse.create({
data: {
formId: seededForm.id,
formFillerId: randomUUID(),
response: {
[seededForm.formFieldFilled.id]: {
label: "skills",
value: selectedSkills.map((opt) => opt.id),
},
},
},
});
}
console.log(`Created ${bookings.length} routing form responses`);