fix: ensure legacy companies jsonify
This commit is contained in:
parent
d23987eda8
commit
29b865885c
1 changed files with 14 additions and 15 deletions
|
|
@ -119,8 +119,7 @@ export async function safeCompanyFindMany(args: Prisma.CompanyFindManyArgs): Pro
|
|||
})) as LegacyCompanyRow[]
|
||||
|
||||
return legacyRows.map(
|
||||
(row) =>
|
||||
({
|
||||
(row) => ({
|
||||
id: row.id,
|
||||
tenantId: row.tenantId,
|
||||
name: row.name,
|
||||
|
|
@ -139,24 +138,24 @@ export async function safeCompanyFindMany(args: Prisma.CompanyFindManyArgs): Pro
|
|||
stateRegistrationType: null,
|
||||
primaryCnae: null,
|
||||
timezone: null,
|
||||
businessHours: Prisma.JsonNull,
|
||||
businessHours: null,
|
||||
supportEmail: null,
|
||||
billingEmail: null,
|
||||
contactPreferences: Prisma.JsonNull,
|
||||
clientDomains: Prisma.JsonNull,
|
||||
communicationChannels: Prisma.JsonNull,
|
||||
fiscalAddress: Prisma.JsonNull,
|
||||
contactPreferences: null,
|
||||
clientDomains: null,
|
||||
communicationChannels: null,
|
||||
fiscalAddress: null,
|
||||
hasBranches: false,
|
||||
regulatedEnvironments: Prisma.JsonNull,
|
||||
regulatedEnvironments: null,
|
||||
privacyPolicyAccepted: false,
|
||||
privacyPolicyReference: null,
|
||||
privacyPolicyMetadata: Prisma.JsonNull,
|
||||
contacts: Prisma.JsonNull,
|
||||
locations: Prisma.JsonNull,
|
||||
contracts: Prisma.JsonNull,
|
||||
sla: Prisma.JsonNull,
|
||||
tags: Prisma.JsonNull,
|
||||
customFields: Prisma.JsonNull,
|
||||
privacyPolicyMetadata: null,
|
||||
contacts: null,
|
||||
locations: null,
|
||||
contracts: null,
|
||||
sla: null,
|
||||
tags: null,
|
||||
customFields: null,
|
||||
notes: null,
|
||||
createdAt: row.createdAt,
|
||||
updatedAt: row.updatedAt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue