fix(validator): corrections to no leak like crazy

This commit is contained in:
2025-09-02 17:56:00 -05:00
parent 8fe1bcaef5
commit 80c0e1ec30
10 changed files with 102 additions and 127 deletions

View File

@@ -1,7 +1,8 @@
import { drizzle } from "drizzle-orm/postgres-js";
import postgres from "postgres";
import { env } from "../utils/envValidator.js";
import { validateEnv } from "../utils/envValidator.js";
const env = validateEnv(process.env);
const dbURL = `postgres://${env.DATABASE_USER}:${env.DATABASE_PASSWORD}@${env.DATABASE_HOST}:${env.DATABASE_PORT}/${env.DATABASE_DB}`;
const queryClient = postgres(dbURL, {