Update referencedBy field in HostService to default to null if undefined
This commit is contained in:
@@ -691,7 +691,7 @@ export class HostService {
|
||||
companyTypes: companyData.companyTypeXid
|
||||
? { connect: { id: companyData.companyTypeXid } }
|
||||
: undefined,
|
||||
referencedBy: companyData.referencedBy,
|
||||
referencedBy: companyData.referencedBy || null,
|
||||
websiteUrl: companyData.websiteUrl || null,
|
||||
instagramUrl: companyData.instagramUrl || null,
|
||||
facebookUrl: companyData.facebookUrl || null,
|
||||
@@ -801,7 +801,7 @@ export class HostService {
|
||||
companyTypes: companyData.companyTypeXid
|
||||
? { connect: { id: companyData.companyTypeXid } }
|
||||
: undefined,
|
||||
referencedBy: companyData.referencedBy,
|
||||
referencedBy: companyData.referencedBy || null,
|
||||
websiteUrl: companyData.websiteUrl || null,
|
||||
instagramUrl: companyData.instagramUrl || null,
|
||||
facebookUrl: companyData.facebookUrl || null,
|
||||
|
||||
Reference in New Issue
Block a user