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

14 lines
442 B

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