Skip to content

Commit

Permalink
👕 Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janober committed Dec 19, 2021
1 parent 7a5c41f commit de971de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Todoist/GenericFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
IDataObject, NodeApiError,
} from 'n8n-workflow';

export function FormatDueDatetime(ISOString: string): string {
export function FormatDueDatetime(isoString: string): string {
// Assuming that the problem with incorrect date format was caused by milliseconds
// Replacing the last 5 characters of ISO-formatted string with just Z char
return ISOString.replace(new RegExp('.000Z$'), 'Z');
return isoString.replace(new RegExp('.000Z$'), 'Z');
}

export async function todoistApiRequest(
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Todoist/Todoist.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
} from 'n8n-workflow';

import {
todoistApiRequest,
FormatDueDatetime,
todoistApiRequest,
} from './GenericFunctions';

interface IBodyCreateTask {
Expand Down Expand Up @@ -365,7 +365,7 @@ export class Todoist implements INodeType {
],
operation: [
'getAll',
],
],
},
},
options: [
Expand Down

0 comments on commit de971de

Please sign in to comment.