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/apps/meteor/server/methods/getSetupWizardParameters.ts

16 lines
495 B

import { Settings } from '@rocket.chat/models';
import { Meteor } from 'meteor/meteor';
import { settings } from '../../app/settings/server';
Meteor.methods({
async getSetupWizardParameters() {
const setupWizardSettings = await Settings.findSetupWizardSettings().toArray();
const serverAlreadyRegistered = !!settings.get('Cloud_Workspace_Client_Id') || process.env.DEPLOY_PLATFORM === 'rocket-cloud';
return {
settings: setupWizardSettings,
serverAlreadyRegistered,
};
},
});