File tree Expand file tree Collapse file tree
apps/meteor/tests/data/livechat
packages/core-typings/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export const archiveDepartment = async (departmentId: string): Promise<void> =>
197197 . expect ( 200 ) ;
198198} ;
199199
200- export const disableDepartment = async ( department : ILivechatDepartment ) : Promise < void > => {
200+ export const disableDepartment = async ( department : Omit < ILivechatDepartment , '_updatedAt' > ) : Promise < void > => {
201201 department . enabled = false ;
202202 delete department . _updatedAt ;
203203 const updatedDepartment = await updateDepartment ( department . _id , department ) ;
Original file line number Diff line number Diff line change 1- export interface ILivechatDepartment {
2- _id : string ;
1+ import type { IRocketChatRecord } from './IRocketChatRecord' ;
2+
3+ export interface ILivechatDepartment extends IRocketChatRecord {
34 name : string ;
45 enabled : boolean ;
56 description ?: string ;
@@ -10,7 +11,6 @@ export interface ILivechatDepartment {
1011 chatClosingTags ?: string [ ] ;
1112 offlineMessageChannelName : string ;
1213 numAgents : number ;
13- _updatedAt ?: Date ;
1414 businessHourId ?: string ;
1515 fallbackForwardDepartment ?: string ;
1616 archived ?: boolean ;
You can’t perform that action at this time.
0 commit comments