1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

Update packages/backend-core/src/redis/redis.ts

Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
Adria Navarro 2024-03-06 12:23:04 +01:00 committed by GitHub
parent d35d382ddb
commit c198a5ae03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,7 +335,7 @@ class RedisWrapper {
async increment(key: string) {
const result = await this.getClient().incr(addDbPrefix(this._db, key))
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
}