fix: use ! syntax instead of || ""

This commit is contained in:
Dominik Koch
2024-10-26 12:28:40 +02:00
committed by GitHub
parent e3b20268d5
commit bc91bb3132
22 changed files with 32 additions and 40 deletions

View File

@@ -3,7 +3,7 @@ import IORedis from "ioredis";
import { logger } from "./logger";
import type { QueueJob } from "./schema";
export const connection = new IORedis(process.env.REDIS_URL || "", {
export const connection = new IORedis(process.env.REDIS_URL!, {
maxRetriesPerRequest: null,
});
export const jobQueue = new Queue("backupQueue", {