Use http agents for hook requests (#4791)

This commit is contained in:
Tyler Brock
2018-05-29 14:48:06 -07:00
committed by Florent Vilmart
parent 32d8c36ff5
commit 82fb06f9c9
3 changed files with 22 additions and 7 deletions

View File

@@ -149,9 +149,10 @@ export function getDatabaseController(options: ParseServerOptions, cacheControll
export function getHooksController(options: ParseServerOptions, databaseController: DatabaseController): HooksController {
const {
appId,
webhookKey
webhookKey,
hookKeepAlive,
} = options;
return new HooksController(appId, databaseController, webhookKey);
return new HooksController(appId, databaseController, webhookKey, hookKeepAlive);
}
interface PushControlling {
@@ -228,4 +229,3 @@ export function getDatabaseAdapter(databaseURI, collectionPrefix, databaseOption
});
}
}