fix DB table creation, remove log line

This commit is contained in:
martin-mfg
2025-06-25 17:21:33 +00:00
parent 47e8886d96
commit 81d7efaf2b
2 changed files with 3 additions and 15 deletions
+2 -1
View File
@@ -39,7 +39,8 @@ export async function storeRequest(req) {
const createTableQuery = `
CREATE TABLE IF NOT EXISTS requests (
request TEXT PRIMARY KEY,
requested_at TIMESTAMP NOT NULL DEFAULT now()
requested_at TIMESTAMP NOT NULL DEFAULT now(),
user_requested_at TIMESTAMP NOT NULL DEFAULT now()
)
`;
await pool.query(createTableQuery);