From ca5936d0db042b76c1730fadf48ebaa7430cbdb2 Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Wed, 3 Dec 2025 14:56:15 +0530 Subject: [PATCH] Update referencedBy field in HostService to default to null if undefined --- src/modules/host/services/host.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/host/services/host.service.ts b/src/modules/host/services/host.service.ts index b753515..6175754 100644 --- a/src/modules/host/services/host.service.ts +++ b/src/modules/host/services/host.service.ts @@ -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,