👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2021-12-19 14:38:51 +01:00
parent 7a5c41fe1a
commit de971de27a
2 changed files with 4 additions and 4 deletions

View File

@@ -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(