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 { env } from "../utils/envValidator.js";
import { returnFunc } from "../utils/return.js";
import { connected, pool } from "./prodSqlConnect.js";
import { validateEnv } from "../utils/envValidator.js";
const env = validateEnv(process.env);
/**
* Run a prod query
* just pass over the query as a string and the name of the query.