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/server/startup/migrations/v186.js

22 lines
457 B

import { addMigration } from '../../lib/migrations';
import { LivechatInquiry } from '../../../app/models/server/raw';
addMigration({
version: 186,
up() {
LivechatInquiry.find({}, { fields: { _id: 1, ts: 1 } }).forEach((inquiry) => {
const { _id, ts } = inquiry;
LivechatInquiry.update(
{ _id },
{
$set: {
queueOrder: 1,
estimatedWaitingTimeQueue: 0,
estimatedServiceTimeAt: ts,
},
},
);
});
},
});