Skip to content

Commit c87273a

Browse files
🐛 Fixes an issue with isImplemented for V2 not passing skillId (#132)
* 🐛 Forwarding skillId for V2 * 🔖 Prepare for bugfix release --------- Co-authored-by: spelczer <spelczer@liveperson.com>
1 parent 5b7deab commit c87273a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "liveperson-functions-client",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "JavaScript client for LivePerson Functions.",
55
"author": {
66
"name": "LivePersonInc",

src/client/baseClient.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,12 +554,14 @@ export class BaseClient {
554554
isImplementedData.accountId,
555555
isImplementedData.eventId
556556
);
557-
const query =
558-
isImplementedData.userId !== undefined
559-
? {
560-
userId: isImplementedData.userId,
561-
}
562-
: {};
557+
const query: {userId?: string; skillId?: string} = {};
558+
if (isImplementedData.userId !== undefined) {
559+
query.userId = isImplementedData.userId;
560+
}
561+
if (isImplementedData.skillId !== undefined) {
562+
query.skillId = isImplementedData.skillId;
563+
}
564+
563565
const url = await this.getUrl({
564566
path,
565567
domain,

0 commit comments

Comments
 (0)