Skip to content

Commit 333057c

Browse files
committed
chore: code improvements
1 parent 580c307 commit 333057c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/ee/omnichannel/lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export const getInquiriesQueued = (serverVersion: string) => {
2222
// RC 2.4.0
2323
export const takeInquiry = (inquiryId: string, serverVersion: string) => {
2424
if (compareServerVersion(serverVersion, 'greaterThanOrEqualTo', '7.11.0')) {
25-
return sdk.methodCallWrapper('livechat:takeInquiry', inquiryId);
25+
return sdk.post('livechat/inquiries.take', { inquiryId });
2626
}
2727
// Method removed in 8.0.0
28-
return sdk.post('livechat/inquiries.take', { inquiryId });
28+
return sdk.methodCallWrapper('livechat:takeInquiry', inquiryId);
2929
};
3030

3131
// RC 4.26

0 commit comments

Comments
 (0)