Skip to content

Commit 29ff7a5

Browse files
authored
Merge branch 'develop' into master
2 parents cb18469 + c6440d8 commit 29ff7a5

File tree

13 files changed

+1053
-9
lines changed

13 files changed

+1053
-9
lines changed

packages/nodes-base/credentials/SentryIoServerApi.credentials.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {
66
export class SentryIoServerApi implements ICredentialType {
77
name = 'sentryIoServerApi';
88
displayName = 'Sentry.io API';
9+
910
documentationUrl = 'sentryIo';
11+
1012
properties = [
1113
{
1214
displayName: 'Token',

packages/nodes-base/nodes/ActiveCampaign/GenericFunctions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
} from 'n8n-workflow';
99

1010
import { OptionsWithUri } from 'request';
11+
import {IProjectDto} from "../Clockify/ProjectInterfaces";
12+
import {clockifyApiRequest} from "../Clockify/GenericFunctions";
1113

1214
export interface IProduct {
1315
fields: {
@@ -186,4 +188,4 @@ export function activeCampaignDefaultGetAllProperties(resource: string, operatio
186188
description: 'When set to true a simplify version of the response will be used else the raw data.',
187189
},
188190
];
189-
}
191+
}

packages/nodes-base/nodes/Clockify/ClockifyTrigger.node.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from './GenericFunctions';
1616

1717
import { EntryTypeEnum } from './EntryTypeEnum';
18-
import { ICurrentUserDto } from './UserDtos';
18+
import { IUserDto } from './UserDtos';
1919
import { IWorkspaceDto } from './WorkpaceInterfaces';
2020

2121

@@ -93,7 +93,7 @@ export class ClockifyTrigger implements INodeType {
9393

9494
if (!webhookData.userId) {
9595
// Cache the user-id that we do not have to request it every time
96-
const userInfo: ICurrentUserDto = await clockifyApiRequest.call(this, 'GET', 'user');
96+
const userInfo: IUserDto = await clockifyApiRequest.call(this, 'GET', 'user');
9797
webhookData.userId = userInfo.id;
9898
}
9999

@@ -118,8 +118,7 @@ export class ClockifyTrigger implements INodeType {
118118

119119
if (Array.isArray(result) && result.length !== 0) {
120120
result = [this.helpers.returnJsonArray(result)];
121-
return result;
122121
}
123-
return null;
122+
return result;
124123
}
125124
}

0 commit comments

Comments
 (0)