Merge pull request #600 from mezotv/switch-env-syntax

Switch to use ! syntax instead of || ""
This commit is contained in:
Mauricio Siu
2024-10-27 02:16:58 -06:00
committed by GitHub
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", {