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

18 lines
457 B

import { Migrations } from '../../../app/migrations/server';
import { theme } from '../../../app/theme/server/server';
import { Settings } from '../../../app/models';
Migrations.add({
version: 175,
up() {
Object.entries(theme.variables)
.filter(([, value]) => value.type === 'color')
.forEach(([key, { editor }]) => {
Settings.update({ _id: `theme-color-${ key }` }, {
$set: {
packageEditor: editor,
},
});
});
},
});