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

19 lines
447 B

import { Migrations } from '../../../app/migrations/server';
import { LivechatInquiry } from '../../../app/models/server/raw';
Migrations.add({
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,
},
});
});
},
});