Skip to content

Commit

Permalink
fix: use subscription fields as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Xillians committed Aug 27, 2024
1 parent 149c143 commit 20af7e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/calls/event/__tests__/event.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('activity class', () => {
const subscription = await client.createSubscription({
event: 'project.create',
targetUrl: 'http://example.com',
fields: ['id', 'name', 'number', 'isClosed'],
fields: 'id,name,number,isClosed',
});

parseRuntypeValidationError(subscription.error);
Expand Down
2 changes: 1 addition & 1 deletion src/calls/event/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface CreateSubscriptionInput {
* The fields in the object delivered
* with the notification callback, nested as in other API calls.
*/
fields?: string[];
fields?: string;

/**
* Custom authentication header name
Expand Down

0 comments on commit 20af7e1

Please sign in to comment.