Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Dec 20, 2022
1 parent b40585a commit 4d3bf0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/CloudCode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ describe('Cloud Code', () => {
});
});

it('can load cloud code as a module', async () => {
process.env.npm_package_type = 'module';
await reconfigureServer({ cloud: './spec/cloud/cloudCodeModuleFile.js' });
const result = await Parse.Cloud.run('cloudCodeInFile');
expect(result).toEqual('It is possible to define cloud code in a file.');
delete process.env.npm_package_type;
});

it('can load cloud code as a function', async () => {
await reconfigureServer({
cloud: () => {
Expand Down
15 changes: 15 additions & 0 deletions src/cli/parse-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ runner({
console.error('');
process.exit(1);
}
if (options['liveQuery.classNames']) {
options.liveQuery = options.liveQuery || {};
options.liveQuery.classNames = options['liveQuery.classNames'];
delete options['liveQuery.classNames'];
}
if (options['liveQuery.redisURL']) {
options.liveQuery = options.liveQuery || {};
options.liveQuery.redisURL = options['liveQuery.redisURL'];
delete options['liveQuery.redisURL'];
}
if (options['liveQuery.redisOptions']) {
options.liveQuery = options.liveQuery || {};
options.liveQuery.redisOptions = options['liveQuery.redisOptions'];
delete options['liveQuery.redisOptions'];
}
if (options.cluster) {
const numCPUs = typeof options.cluster === 'number' ? options.cluster : os.cpus().length;
if (cluster.isMaster) {
Expand Down

0 comments on commit 4d3bf0f

Please sign in to comment.