From 54d6b53f47b62f2eccf7d36b152226350072477a Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 07:06:57 +0000 Subject: [PATCH] completionId: cgen-77cad85f6231453a92fb06fdd65dec70 cgen-77cad85f6231453a92fb06fdd65dec70 --- api/ethos/licensing-notifications.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/ethos/licensing-notifications.ts b/api/ethos/licensing-notifications.ts index a2dde1c7..272e92d4 100644 --- a/api/ethos/licensing-notifications.ts +++ b/api/ethos/licensing-notifications.ts @@ -68,8 +68,8 @@ export default async function handler(req: any, res: any) { return res.status(404).json({ error: "Agreement not found" }); } - const artist = agreement.ethos_tracks?.user_profiles; - const licensee = agreement.user_profiles; + const artist = agreement.ethos_tracks?.user_profiles?.[0]; + const licensee = agreement.user_profiles?.[0]; const trackTitle = agreement.ethos_tracks?.title; if (!artist?.email) {