Skip to content

Commit

Permalink
Chore: Deprecate unused omnichannel API (#27538)
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 authored Dec 14, 2022
1 parent a0d46cd commit 718ef02
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions apps/meteor/app/livechat/imports/server/rest/inquiries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { LivechatInquiry } from '@rocket.chat/models';
import { API } from '../../../../api/server';
import { Users, LivechatDepartment } from '../../../../models/server';
import { findInquiries, findOneInquiryByRoomId } from '../../../server/api/lib/inquiries';
import { deprecationWarning } from '../../../../api/server/helpers/deprecationWarning';

API.v1.addRoute(
'livechat/inquiries.list',
Expand Down Expand Up @@ -81,15 +82,19 @@ API.v1.addRoute(
const { department } = this.requestParams();

return API.v1.success(
await findInquiries({
userId: this.userId,
department,
status: LivechatInquiryStatus.QUEUED,
pagination: {
offset,
count,
sort,
},
deprecationWarning({
endpoint: 'livechat/inquiries.queued',
versionWillBeRemoved: '6.0',
response: await findInquiries({
userId: this.userId,
department,
status: LivechatInquiryStatus.QUEUED,
pagination: {
offset,
count,
sort,
},
}),
}),
);
},
Expand Down

0 comments on commit 718ef02

Please sign in to comment.