fix: revert broken redis nonsense

This commit is contained in:
zkldi
2022-07-17 21:41:07 +01:00
parent 44bd12e7a8
commit 6cf723ebe8
+9 -1
View File
@@ -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);
}
});
});
}