n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -7,30 +7,32 @@ import {
|
||||
MoveHandler,
|
||||
ReopenHandler,
|
||||
SyncHandler,
|
||||
UpdateHandler
|
||||
UpdateHandler,
|
||||
} from './OperationHandler';
|
||||
|
||||
import {Context} from './GenericFunctions';
|
||||
import { Context } from './GenericFunctions';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
|
||||
export class TodoistService implements Service {
|
||||
|
||||
async execute(ctx: Context, operation: OperationType, itemIndex: number): Promise<TodoistResponse> {
|
||||
async execute(
|
||||
ctx: Context,
|
||||
operation: OperationType,
|
||||
itemIndex: number,
|
||||
): Promise<TodoistResponse> {
|
||||
return this.handlers[operation].handleOperation(ctx, itemIndex);
|
||||
}
|
||||
|
||||
private handlers = {
|
||||
'create': new CreateHandler(),
|
||||
'close': new CloseHandler(),
|
||||
'delete': new DeleteHandler(),
|
||||
'get': new GetHandler(),
|
||||
'getAll': new GetAllHandler(),
|
||||
'reopen': new ReopenHandler(),
|
||||
'update': new UpdateHandler(),
|
||||
'move': new MoveHandler(),
|
||||
'sync': new SyncHandler(),
|
||||
create: new CreateHandler(),
|
||||
close: new CloseHandler(),
|
||||
delete: new DeleteHandler(),
|
||||
get: new GetHandler(),
|
||||
getAll: new GetAllHandler(),
|
||||
reopen: new ReopenHandler(),
|
||||
update: new UpdateHandler(),
|
||||
move: new MoveHandler(),
|
||||
sync: new SyncHandler(),
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
export enum OperationType {
|
||||
|
||||
Reference in New Issue
Block a user