up to 10 mins

This commit is contained in:
x032205
2025-08-04 10:46:10 -04:00
parent 793cd4c144
commit 6c74b875f3

View File

@@ -194,7 +194,7 @@ export const auditLogDALFactory = (db: TDbClient) => {
if (tx) {
await runPrune(tx);
} else {
const QUERY_TIMEOUT_MS = 3 * 60 * 1000; // 3 minutes
const QUERY_TIMEOUT_MS = 10 * 60 * 1000; // 10 minutes
await db.transaction(async (trx) => {
await trx.raw(`SET statement_timeout = ${QUERY_TIMEOUT_MS}`);
await runPrune(trx);