mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
chore: remove db credentials from tracking and add template file
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user