mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Fix lint issue
This commit is contained in:
parent
7a5c41fe1a
commit
de971de27a
|
@ -12,10 +12,10 @@ import {
|
||||||
IDataObject, NodeApiError,
|
IDataObject, NodeApiError,
|
||||||
} from 'n8n-workflow';
|
} 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
|
// 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
|
// 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(
|
export async function todoistApiRequest(
|
||||||
|
|
|
@ -12,8 +12,8 @@ import {
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
todoistApiRequest,
|
|
||||||
FormatDueDatetime,
|
FormatDueDatetime,
|
||||||
|
todoistApiRequest,
|
||||||
} from './GenericFunctions';
|
} from './GenericFunctions';
|
||||||
|
|
||||||
interface IBodyCreateTask {
|
interface IBodyCreateTask {
|
||||||
|
|
Loading…
Reference in a new issue