completionId: cgen-b4d17bc1c8514d2c893af6c7d89c6785
cgen-b4d17bc1c8514d2c893af6c7d89c6785
This commit is contained in:
parent
6cff66197e
commit
1311fcca8c
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue