feat: insights routing forms (#17583)
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
1 parent
e85c0e1a85
commit
7ce5886b4f
34 files changed
+2762
-870
No files matched your search
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user