Skip to content

Commit 7197afd

Browse files
authored
repo sync
2 parents 54d119a + 00aed22 commit 7197afd

16 files changed

Lines changed: 204680 additions & 37492 deletions

lib/redis-accessor.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const useRealRedis = !CI && NODE_ENV !== 'test' && !!REDIS_URL
1010
const redisMaxDb = REDIS_MAX_DB || 15
1111

1212
// Enable better stack traces in non-production environments
13-
const redisOptions = {
13+
const redisBaseOptions = {
1414
showFriendlyErrorStack: NODE_ENV !== 'production'
1515
}
1616

@@ -22,8 +22,10 @@ class RedisAccessor {
2222
)
2323
}
2424

25-
const redisUrl = `${REDIS_URL}/${databaseNumber}`
26-
const redisClient = useRealRedis ? new Redis(redisUrl, redisOptions) : new InMemoryRedis()
25+
const redisClient = useRealRedis
26+
? new Redis(REDIS_URL, { ...redisBaseOptions, db: databaseNumber })
27+
: new InMemoryRedis()
28+
2729
this._client = redisClient
2830

2931
this._prefix = prefix ? prefix.replace(/:+$/, '') + ':' : ''

lib/rest/static/decorated/api.github.com.json

Lines changed: 100 additions & 62 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-2.18.json

Lines changed: 36 additions & 34 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-2.19.json

Lines changed: 36 additions & 34 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-2.20.json

Lines changed: 40 additions & 38 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-2.21.json

Lines changed: 40 additions & 38 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/ghes-2.22.json

Lines changed: 46 additions & 44 deletions
Large diffs are not rendered by default.

lib/rest/static/decorated/github.ae.json

Lines changed: 40 additions & 38 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)