Skip to content

Commit b20d0ce

Browse files
committed
fix: logger error on database options
1 parent 6a0b9ea commit b20d0ce

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/ParseServer.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "7.1.0-alpha.6.moumouls.2",
3+
"version": "7.1.0-alpha.6.moumouls.3",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {

src/ParseServer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ParseServer {
106106
return result;
107107
}
108108

109-
const diff = validateKeyNames(options, optionsBlueprint);
109+
const diff = validateKeyNames(options, optionsBlueprint).filter((item) => item.indexOf('databaseOptions.') === -1);
110110
if (diff.length > 0) {
111111
const logger = logging.logger;
112112
logger.error(`Invalid Option Keys Found: ${diff.join(', ')}`);
@@ -494,7 +494,7 @@ class ParseServer {
494494
if (!isValidHttpUrl(url)) {
495495
console.warn(
496496
`\nWARNING, Unable to connect to '${Parse.serverURL}' as the URL is invalid.` +
497-
` Cloud code and push notifications may be unavailable!\n`
497+
` Cloud code and push notifications may be unavailable!\n`
498498
);
499499
return;
500500
}
@@ -510,7 +510,7 @@ class ParseServer {
510510
/* eslint-disable no-console */
511511
console.warn(
512512
`\nWARNING, Unable to connect to '${Parse.serverURL}'.` +
513-
` Cloud code and push notifications may be unavailable!\n`
513+
` Cloud code and push notifications may be unavailable!\n`
514514
);
515515
/* eslint-enable no-console */
516516
return;

0 commit comments

Comments
 (0)