mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 00:38:28 +03:00
fix: revert broken redis nonsense
This commit is contained in:
Vendored
+9
-1
@@ -36,5 +36,13 @@ RedisClient.on("connect", () => {
|
||||
});
|
||||
|
||||
export function CloseRedisConnection() {
|
||||
return RedisClient.quit();
|
||||
return new Promise((resolve, reject) => {
|
||||
RedisClient.quit((err, reply) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve(reply);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user