Generates a javascriptKey if not passed for CloudCode
This commit is contained in:
@@ -39,6 +39,7 @@ import { LoggerController } from './Controllers/LoggerController';
|
|||||||
import { HooksController } from './Controllers/HooksController';
|
import { HooksController } from './Controllers/HooksController';
|
||||||
|
|
||||||
import requiredParameter from './requiredParameter';
|
import requiredParameter from './requiredParameter';
|
||||||
|
import { randomString } from './cryptoUtils';
|
||||||
// Mutate the Parse object to add the Cloud Code handlers
|
// Mutate the Parse object to add the Cloud Code handlers
|
||||||
addParseCloud();
|
addParseCloud();
|
||||||
|
|
||||||
@@ -79,7 +80,7 @@ function ParseServer({
|
|||||||
cloud,
|
cloud,
|
||||||
collectionPrefix = '',
|
collectionPrefix = '',
|
||||||
clientKey = '',
|
clientKey = '',
|
||||||
javascriptKey = '',
|
javascriptKey = randomString(20),
|
||||||
dotNetKey = '',
|
dotNetKey = '',
|
||||||
restAPIKey = '',
|
restAPIKey = '',
|
||||||
fileKey = 'invalid-file-key',
|
fileKey = 'invalid-file-key',
|
||||||
@@ -227,4 +228,4 @@ function getClassName(parseClass) {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
ParseServer: ParseServer,
|
ParseServer: ParseServer,
|
||||||
S3Adapter: S3Adapter
|
S3Adapter: S3Adapter
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user