Update packages/backend-core/src/redis/redis.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
parent
d35d382ddb
commit
c198a5ae03
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ class RedisWrapper {
|
||||||
async increment(key: string) {
|
async increment(key: string) {
|
||||||
const result = await this.getClient().incr(addDbPrefix(this._db, key))
|
const result = await this.getClient().incr(addDbPrefix(this._db, key))
|
||||||
if (isNaN(result)) {
|
if (isNaN(result)) {
|
||||||
throw new Error(`Redis ${key} does not contains a number`)
|
throw new Error(`Redis ${key} does not contain a number`)
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue