RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/startup/migrations/v299.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Settings } from '@rocket.chat/models';

import { addMigration } from '../../lib/migrations';

addMigration({
    version: 299,
    name: 'Add public field to existing custom OAuth settings',
    async up() {
        await Settings.updateMany({ _id: /^Accounts_OAuth_Custom.+/, group: 'OAuth' }, { $set: { public: false } });
    },
});