mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
✨ Add Clockify Node (#997)
* Added pull.yml back after reset * Added Clockify Entry * Created ClockifyWriter * ⚡ Improvements to #988 * ⚡ Improvements * ⚡ Improvements Co-authored-by: Ethan Sowell <ethan.sowell@dominion.solutions> Co-authored-by: Mark Horninger <mark.horninger@dominion.solutions>
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
} from './GenericFunctions';
|
||||
|
||||
import { EntryTypeEnum } from './EntryTypeEnum';
|
||||
import { ICurrentUserDto } from './UserDtos';
|
||||
import { IUserDto } from './UserDtos';
|
||||
import { IWorkspaceDto } from './WorkpaceInterfaces';
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export class ClockifyTrigger implements INodeType {
|
||||
description: 'Watches Clockify For Events',
|
||||
defaults: {
|
||||
name: 'Clockify Trigger',
|
||||
color: '#00FF00',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: [],
|
||||
outputs: ['main'],
|
||||
@@ -93,7 +93,7 @@ export class ClockifyTrigger implements INodeType {
|
||||
|
||||
if (!webhookData.userId) {
|
||||
// Cache the user-id that we do not have to request it every time
|
||||
const userInfo: ICurrentUserDto = await clockifyApiRequest.call(this, 'GET', 'user');
|
||||
const userInfo: IUserDto = await clockifyApiRequest.call(this, 'GET', 'user');
|
||||
webhookData.userId = userInfo.id;
|
||||
}
|
||||
|
||||
@@ -118,8 +118,7 @@ export class ClockifyTrigger implements INodeType {
|
||||
|
||||
if (Array.isArray(result) && result.length !== 0) {
|
||||
result = [this.helpers.returnJsonArray(result)];
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user