Merge pull request #833 from ParsePlatform/flovilmart.S3Environment

Improves loading of Push Adapter, fix loading of S3Adapter
This commit is contained in:
Florent Vilmart
2016-03-06 16:13:05 -05:00
5 changed files with 60 additions and 26 deletions

View File

@@ -133,7 +133,8 @@ function ParseServer({
const filesControllerAdapter = loadAdapter(filesAdapter, () => {
return new GridStoreAdapter(databaseURI);
});
const pushControllerAdapter = loadAdapter(push, ParsePushAdapter);
// Pass the push options too as it works with the default
const pushControllerAdapter = loadAdapter(push && push.adapter, ParsePushAdapter, push);
const loggerControllerAdapter = loadAdapter(loggerAdapter, FileLoggerAdapter);
const emailControllerAdapter = loadAdapter(emailAdapter);
// We pass the options and the base class for the adatper,