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

22 lines
647 B

import { Migrations } from '../../../app/migrations/server';
import { settings } from '../../../app/settings/server';
import { Settings } from '../../../app/models/server';
Migrations.add({
version: 149,
up() {
if (settings.get('Accounts_OAuth_Gitlab')) {
const setting = Settings.findById('Accounts_OAuth_Gitlab_identity_path');
const newValue = '/api/v3/user';
if (setting) {
Settings.updateValueById('Accounts_OAuth_Gitlab_identity_path', newValue);
} else {
Settings.createWithIdAndValue('Accounts_OAuth_Gitlab_identity_path', newValue);
}
}
},
down() {
// Down migration does not apply in this case
},
});