🐛 Fix another wrong property on ClickUp-Node

This commit is contained in:
Jan Oberhauser 2020-08-31 21:41:45 +02:00
parent bb4d7a4072
commit e11d61da9d

View file

@ -371,8 +371,8 @@ export class ClickUp implements INodeType {
const body: IDataObject = {
name,
};
if (additionalFields.assigneeId) {
body.assignee = parseInt(additionalFields.assigneeId as string, 10);
if (additionalFields.assignee) {
body.assignee = parseInt(additionalFields.assignee as string, 10);
}
responseData = await clickupApiRequest.call(this, 'POST', `/checklist/${checklistId}/checklist_item`, body);
responseData = responseData.checklist;