Skip to content

Commit 7367e3b

Browse files
authored
fix: inquiries.take not throwing error on clientAction:true (RocketChat#39250)
1 parent 5518503 commit 7367e3b

3 files changed

Lines changed: 416 additions & 1 deletion

File tree

.changeset/tame-dolphins-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rocket.chat/meteor": patch
3+
---
4+
5+
Fixes `inquiries.take` not failing when attempting to take a chat while over chat limits

apps/meteor/app/livechat/imports/server/rest/inquiries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ API.v1.addRoute(
6969
return API.v1.failure('The user is invalid');
7070
}
7171
return API.v1.success({
72-
inquiry: await takeInquiry(this.bodyParams.userId || this.userId, this.bodyParams.inquiryId),
72+
inquiry: await takeInquiry(this.bodyParams.userId || this.userId, this.bodyParams.inquiryId, this.bodyParams.options),
7373
});
7474
},
7575
},

0 commit comments

Comments
 (0)