fix(machines): guard Convex getById calls with 'skip' when missing id to avoid ArgumentValidationError; add unit test for getById metadata; fix build by loosening Prisma types in company service
This commit is contained in:
parent
5ff37195f5
commit
49173cdf69
6 changed files with 110 additions and 18 deletions
|
|
@ -43,9 +43,9 @@ export async function POST(request: Request) {
|
|||
|
||||
const company = await prisma.company.create({
|
||||
data: {
|
||||
...buildCompanyData(form, tenantId),
|
||||
...(buildCompanyData(form, tenantId) as any),
|
||||
provisioningCode,
|
||||
},
|
||||
} as any,
|
||||
})
|
||||
|
||||
if (company.provisioningCode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue