🐛 fixes issue with end parameter

This commit is contained in:
ricardo 2020-04-22 13:42:58 -05:00
parent b395ac0686
commit 0cc4e478be

View file

@ -107,7 +107,7 @@ export class ClockifyTrigger implements INodeType {
const workflowTimezone = this.getTimezone();
resource = `workspaces/${workspaceId}/user/${webhookData.userId}/time-entries`;
qs.start = webhookData.lastTimeChecked;
qs.end = moment().tz(workflowTimezone).format('YYYY-MM-DDTHH:mm:SS') + 'Z';
qs.end = moment().tz(workflowTimezone).format('YYYY-MM-DDTHH:mm:ss') + 'Z';
qs.hydrated = true;
qs['in-progress'] = false;
break;
@ -119,7 +119,6 @@ export class ClockifyTrigger implements INodeType {
if (Array.isArray(result) && result.length !== 0) {
result = [this.helpers.returnJsonArray(result)];
}
return result;
return null;
}
}