mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Minor improvements to Todoist-Node
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
This list shows all the versions which include breaking changes and how to upgrade.
|
||||
|
||||
## 0.80.0
|
||||
## 0.79.0
|
||||
|
||||
### What changed?
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export async function todoistApiRequest(
|
||||
| ILoadOptionsFunctions,
|
||||
method: string,
|
||||
resource: string,
|
||||
body: any = {},
|
||||
body: any = {}, // tslint:disable-line:no-any
|
||||
qs: IDataObject = {},
|
||||
): Promise<any> { // tslint:disable-line:no-any
|
||||
const authentication = this.getNodeParameter('authentication', 0, 'apiKey');
|
||||
|
||||
@@ -426,10 +426,12 @@ export class Todoist implements INodeType {
|
||||
const length = items.length as unknown as number;
|
||||
const qs: IDataObject = {};
|
||||
let responseData;
|
||||
for (let i = 0; i < length; i++) {
|
||||
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
|
||||
if (resource === 'task') {
|
||||
if (operation === 'create') {
|
||||
//https://developer.todoist.com/rest/v1/#create-a-new-task
|
||||
|
||||
Reference in New Issue
Block a user