fix(validator): corrections to no leak like crazy
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user