Retired visitor database connection. Fixed empty traxxx breaking on missing batch IDs.

This commit is contained in:
2026-01-29 04:45:38 +01:00
parent 3bee1ac97d
commit 52d041c591
4 changed files with 6 additions and 16 deletions

View File

@@ -1,15 +1,6 @@
import config from 'config';
import knex from 'knex';
export const knexQuery = knex({
client: 'pg',
connection: config.database.query,
pool: config.database.pool,
// performance overhead, don't use asyncStackTraces in production
asyncStackTraces: process.env.NODE_ENV === 'development',
// debug: process.env.NODE_ENV === 'development',
});
export const knexOwner = knex({
client: 'pg',
connection: config.database.owner,
@@ -19,6 +10,8 @@ export const knexOwner = knex({
// debug: process.env.NODE_ENV === 'development',
});
export const knexQuery = knexOwner; // legacy
export const knexManticore = knex({
client: 'mysql',
connection: {