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
@@ -15,8 +15,8 @@ import { IDataObject } from 'n8n-workflow';
|
||||
|
||||
export class TodoistService implements Service {
|
||||
|
||||
async execute(ctx: Context, operation: OperationType): Promise<TodoistResponse> {
|
||||
return this.handlers[operation].handleOperation(ctx, 0);
|
||||
async execute(ctx: Context, operation: OperationType, itemIndex: number): Promise<TodoistResponse> {
|
||||
return this.handlers[operation].handleOperation(ctx, itemIndex);
|
||||
}
|
||||
|
||||
private handlers = {
|
||||
@@ -51,7 +51,7 @@ export interface Section {
|
||||
}
|
||||
|
||||
export interface Service {
|
||||
execute(ctx: Context, operation: OperationType): Promise<TodoistResponse>;
|
||||
execute(ctx: Context, operation: OperationType, itemIndex: number): Promise<TodoistResponse>;
|
||||
}
|
||||
|
||||
export interface TodoistResponse {
|
||||
|
||||
Reference in New Issue
Block a user