Fix Activity.create payload: pass values as object not array
This commit is contained in:
@@ -98,7 +98,7 @@ export async function POST(req: Request) {
|
|||||||
activityRecord[field.civiField] = value;
|
activityRecord[field.civiField] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
await civi("Activity", "create", { values: [activityRecord] });
|
await civi("Activity", "create", { values: activityRecord });
|
||||||
|
|
||||||
return NextResponse.json({ ok: true });
|
return NextResponse.json({ ok: true });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user