mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
👕 Fix lint issue
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
todoistApiRequest,
|
||||
FormatDueDatetime,
|
||||
todoistApiRequest,
|
||||
} from './GenericFunctions';
|
||||
|
||||
interface IBodyCreateTask {
|
||||
@@ -365,7 +365,7 @@ export class Todoist implements INodeType {
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
|
||||
Reference in New Issue
Block a user