🔀 Merge pull request #503 from RicardoE105/feature/clockify-node

🐛 fixes issue with end parameter
This commit is contained in:
Jan 2020-04-22 22:28:34 +02:00 committed by GitHub
commit a270beba99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}
}