fix countcontributingusers

This commit is contained in:
Michael C
2023-02-20 22:56:38 -05:00
parent 1bda331b0c
commit 31a460e750
4 changed files with 35 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ import { Pool } from "pg";
import { Logger } from "../../src/utils/logger";
export async function resetRedis() {
if (config.redis) {
if (config?.redis?.enabled) {
const client = createClient(config.redis);
await client.connect();
await client.flushAll();