Skip to content

Commit 4d3bf0f

Browse files
committed
revert
1 parent b40585a commit 4d3bf0f

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

spec/CloudCode.spec.js

-8
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ describe('Cloud Code', () => {
4747
});
4848
});
4949

50-
it('can load cloud code as a module', async () => {
51-
process.env.npm_package_type = 'module';
52-
await reconfigureServer({ cloud: './spec/cloud/cloudCodeModuleFile.js' });
53-
const result = await Parse.Cloud.run('cloudCodeInFile');
54-
expect(result).toEqual('It is possible to define cloud code in a file.');
55-
delete process.env.npm_package_type;
56-
});
57-
5850
it('can load cloud code as a function', async () => {
5951
await reconfigureServer({
6052
cloud: () => {

src/cli/parse-server.js

+15
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ runner({
3939
console.error('');
4040
process.exit(1);
4141
}
42+
if (options['liveQuery.classNames']) {
43+
options.liveQuery = options.liveQuery || {};
44+
options.liveQuery.classNames = options['liveQuery.classNames'];
45+
delete options['liveQuery.classNames'];
46+
}
47+
if (options['liveQuery.redisURL']) {
48+
options.liveQuery = options.liveQuery || {};
49+
options.liveQuery.redisURL = options['liveQuery.redisURL'];
50+
delete options['liveQuery.redisURL'];
51+
}
52+
if (options['liveQuery.redisOptions']) {
53+
options.liveQuery = options.liveQuery || {};
54+
options.liveQuery.redisOptions = options['liveQuery.redisOptions'];
55+
delete options['liveQuery.redisOptions'];
56+
}
4257
if (options.cluster) {
4358
const numCPUs = typeof options.cluster === 'number' ? options.cluster : os.cpus().length;
4459
if (cluster.isMaster) {

0 commit comments

Comments
 (0)