The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/models/server/raw/UsersSessions.ts

19 lines
433 B

import { BaseRaw } from './BaseRaw';
import { IUserSession } from '../../../../definition/IUserSession';
export class UsersSessionsRaw extends BaseRaw<IUserSession> {
clearConnectionsFromInstanceId(instanceId: string[]): ReturnType<BaseRaw<IUserSession>['updateMany']> {
return this.col.updateMany(
{},
{
$pull: {
connections: {
instanceId: {
$nin: instanceId,
},
},
},
},
);
}
}