diff --git a/package.json b/package.json index ecf7771..a021873 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "liveperson-functions-client", - "version": "2.0.2", + "version": "2.0.3", "description": "JavaScript client for LivePerson Functions.", "author": { "name": "LivePersonInc", diff --git a/src/client/baseClient.ts b/src/client/baseClient.ts index 8fd6923..e60890d 100644 --- a/src/client/baseClient.ts +++ b/src/client/baseClient.ts @@ -554,12 +554,14 @@ export class BaseClient { isImplementedData.accountId, isImplementedData.eventId ); - const query = - isImplementedData.userId !== undefined - ? { - userId: isImplementedData.userId, - } - : {}; + const query: {userId?: string; skillId?: string} = {}; + if (isImplementedData.userId !== undefined) { + query.userId = isImplementedData.userId; + } + if (isImplementedData.skillId !== undefined) { + query.skillId = isImplementedData.skillId; + } + const url = await this.getUrl({ path, domain,