From 1311fcca8cc22429ca57f959b31a19e9d0b88d43 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Thu, 13 Nov 2025 07:07:03 +0000 Subject: [PATCH] completionId: cgen-b4d17bc1c8514d2c893af6c7d89c6785 cgen-b4d17bc1c8514d2c893af6c7d89c6785 --- 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 081745f8..5e50475c 100644 --- a/api/ethos/licensing-notifications.ts +++ b/api/ethos/licensing-notifications.ts @@ -206,8 +206,8 @@ export default async function handler(req: any, res: any) { return res.status(404).json({ error: "Agreement not found" }); } - const licensee = agreement.user_profiles; - const artist = agreement.ethos_tracks?.user_profiles; + const licensee = agreement.user_profiles?.[0]; + const artist = agreement.ethos_tracks?.user_profiles?.[0]; const trackTitle = agreement.ethos_tracks?.title; if (!licensee?.email) {