feat: 保存咨询提交的业务来源
This commit is contained in:
1 parent
4754230e5b
commit
25bf980d3c
5 files changed
+24
-1
No files matched your search
@@ -253,7 +253,10 @@ class AdminWorkspaceController {
|
||||
this.requireAdmin(request);
|
||||
return this.prisma.inquirySubmission.findMany({
|
||||
where: { brandId: this.brandId() },
|
||||
include: { inquiryForm: { select: { name: true } } },
|
||||
include: {
|
||||
inquiryForm: { select: { name: true } },
|
||||
offering: { select: { id: true, name: true } },
|
||||
},
|
||||
orderBy: { createdAt: "desc" },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -252,6 +252,7 @@ export class CustomerInquirySubmissionController {
|
||||
data: {
|
||||
brandId: identity.brandId,
|
||||
inquiryFormId: form.id,
|
||||
offeringId: form.offeringId,
|
||||
formVersion: form.version,
|
||||
fieldsSnapshot: form.fieldsSnapshot as Prisma.InputJsonValue,
|
||||
values: body.values as Prisma.InputJsonValue,
|
||||
|
||||
Reference in new issue
Block a user