LiveQuery: Add options for Redis (#5584)

Closes: https://github.com/parse-community/parse-server/issues/5387
This commit is contained in:
Diamond Lewis
2019-05-11 19:13:41 -05:00
committed by GitHub
parent b9c936f594
commit 0ce4eeae72
7 changed files with 41 additions and 6 deletions

View File

@@ -60,6 +60,11 @@ runner({
options.liveQuery.redisURL = options['liveQuery.redisURL'];
delete options['liveQuery.redisURL'];
}
if (options['liveQuery.redisOptions']) {
options.liveQuery = options.liveQuery || {};
options.liveQuery.redisOptions = options['liveQuery.redisOptions'];
delete options['liveQuery.redisOptions'];
}
if (options.cluster) {
const numCPUs =