Skip to content

Commit

Permalink
fix: Custom OAuth settings are not visible (RocketChat#29056)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Jun 19, 2023
1 parent 5e429d9 commit fc6fb23
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-moose-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: Custom OAuth settings are not visible
1 change: 1 addition & 0 deletions apps/meteor/server/startup/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ import './v295';
import './v296';
import './v297';
import './v298';
import './v299';
import './xrun';
11 changes: 11 additions & 0 deletions apps/meteor/server/startup/migrations/v299.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
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 } });
},
});

0 comments on commit fc6fb23

Please sign in to comment.