diff options
Diffstat (limited to 'server/lib/redis.ts')
-rw-r--r-- | server/lib/redis.ts | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts index 5bd55109c..78b28986a 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts | |||
@@ -78,16 +78,6 @@ class Redis { | |||
78 | return this.setObject(this.buildCachedRouteKey(req), cached, lifetime) | 78 | return this.setObject(this.buildCachedRouteKey(req), cached, lifetime) |
79 | } | 79 | } |
80 | 80 | ||
81 | listJobs (jobsPrefix: string, state: string, mode: 'alpha', order: 'ASC' | 'DESC', offset: number, count: number) { | ||
82 | return new Promise<string[]>((res, rej) => { | ||
83 | this.client.sort(jobsPrefix + ':jobs:' + state, 'by', mode, order, 'LIMIT', offset.toString(), count.toString(), (err, values) => { | ||
84 | if (err) return rej(err) | ||
85 | |||
86 | return res(values) | ||
87 | }) | ||
88 | }) | ||
89 | } | ||
90 | |||
91 | generateResetPasswordKey (userId: number) { | 81 | generateResetPasswordKey (userId: number) { |
92 | return 'reset-password-' + userId | 82 | return 'reset-password-' + userId |
93 | } | 83 | } |