mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 11:02:12 -08:00
minor improvements
This commit is contained in:
parent
364fd5276b
commit
717c43b21f
|
@ -106,7 +106,7 @@ export class GoogleTasks implements INodeType {
|
|||
|
||||
if (additionalFields.links) {
|
||||
body.links = (additionalFields.links as string[]).map(link => {
|
||||
return { link: link };
|
||||
return { link };
|
||||
});
|
||||
}
|
||||
if (additionalFields.status)
|
||||
|
@ -144,7 +144,7 @@ export class GoogleTasks implements INodeType {
|
|||
qs
|
||||
);
|
||||
}
|
||||
if (operation == 'delete') {
|
||||
if (operation === 'delete') {
|
||||
//https://developers.google.com/tasks/v1/reference/tasks/delete
|
||||
const taskListId = this.getNodeParameter('task', i) as string;
|
||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||
|
@ -226,7 +226,7 @@ export class GoogleTasks implements INodeType {
|
|||
responseData = responseData.items;
|
||||
}
|
||||
}
|
||||
if (operation == 'update') {
|
||||
if (operation === 'update') {
|
||||
body = {};
|
||||
//https://developers.google.com/tasks/v1/reference/tasks/patch
|
||||
const taskListId = this.getNodeParameter('task', i) as string;
|
||||
|
|
Loading…
Reference in a new issue