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/v066.js

15 lines
445 B

import { Migrations } from '../../../app/migrations';
import { Settings } from '../../../app/models';
Migrations.add({
version: 66,
up() {
if (Settings) {
// New color settings - start with old settings as defaults
const replace1 = Settings.findOne({ _id: 'theme-color-tertiary-background-color' });
if (replace1) {
Settings.upsert({ _id: 'theme-color-component-color' }, { $set: { value: replace1.value } });
}
}
},
});