chore: remove db credentials from tracking and add template file

This commit is contained in:
2025-12-28 23:04:08 +11:00
parent fc16340c25
commit 64bdc868b2
4 changed files with 17 additions and 10 deletions

View File

@@ -1,10 +1,6 @@
const { Pool } = require('pg');
const config = require('./lib/db-config');
const { v4: uuidv4 } = require('uuid');
// Force localhost
config.host = 'localhost';
config.password = 'WebPerfTest2025';
const crypto = require('crypto');
const pool = new Pool(config);
@@ -13,7 +9,7 @@ async function testInsert() {
const client = await pool.connect();
try {
const testId = uuidv4();
const testId = crypto.randomUUID();
const query = `
INSERT INTO test_results (
id, url, user_uuid, is_mobile,