Fix a typo (#2563)

Update connectionPrefix with collectionPrefix
This commit is contained in:
Dharam Gollapudi
2016-08-22 09:52:56 -07:00
committed by Florent Vilmart
parent 23e47f2e28
commit 5ca4844bef

View File

@@ -143,7 +143,7 @@ class ParseServer {
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
Parse.serverURL = serverURL;
if ((databaseOptions || (databaseURI && databaseURI != defaults.DefaultMongoURI) || collectionPrefix !== '') && databaseAdapter) {
throw 'You cannot specify both a databaseAdapter and a databaseURI/databaseOptions/connectionPrefix.';
throw 'You cannot specify both a databaseAdapter and a databaseURI/databaseOptions/collectionPrefix.';
} else if (!databaseAdapter) {
databaseAdapter = new MongoStorageAdapter({
uri: databaseURI,