mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Todoist Node): Fix multiple item support (#3614)
* Fixed multiple items handling with todoist node * Removed unused import
This commit is contained in:
committed by
GitHub
parent
bb41f8388d
commit
7ba85c4ab9
@@ -10,7 +10,7 @@ import {
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {FormatDueDatetime, todoistApiRequest,} from './GenericFunctions';
|
||||
import {todoistApiRequest,} from './GenericFunctions';
|
||||
|
||||
import {OperationType, TodoistService} from './Service';
|
||||
interface IBodyCreateTask {
|
||||
@@ -698,7 +698,7 @@ export class Todoist implements INodeType {
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
if (resource === 'task') {
|
||||
responseData = (await service.execute(this, OperationType[operation as keyof typeof OperationType]));
|
||||
responseData = (await service.execute(this, OperationType[operation as keyof typeof OperationType], i));
|
||||
}
|
||||
if (Array.isArray(responseData?.data)) {
|
||||
returnData.push.apply(returnData, responseData?.data as IDataObject[]);
|
||||
|
||||
Reference in New Issue
Block a user