completionId: cgen-59aea640ea8c4685b54a822908da7d30

cgen-59aea640ea8c4685b54a822908da7d30
This commit is contained in:
Builder.io 2025-11-13 07:07:00 +00:00
parent 54d6b53f47
commit 6cff66197e

View file

@ -137,8 +137,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) {