fix: remove circular dependency in database.js audit logging
- Remove logAudit import and call from db/database.js (circular dep with auditService) - database.js init code uses console.log instead - logAudit remains in setup/firstRun.js and server.js (safe, no circular dep)
This commit is contained in:
parent
eb86da1e69
commit
ee960c5c5a
|
|
@ -2,9 +2,6 @@ const Database = require('better-sqlite3');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
// Import audit logging utility
|
|
||||||
const { logAudit } = require('./services/auditService');
|
|
||||||
|
|
||||||
const DB_PATH = process.env.DB_PATH || path.join(__dirname, 'bills.db');
|
const DB_PATH = process.env.DB_PATH || path.join(__dirname, 'bills.db');
|
||||||
const SCHEMA_PATH = path.join(__dirname, 'schema.sql');
|
const SCHEMA_PATH = path.join(__dirname, 'schema.sql');
|
||||||
const DEFAULT_CATEGORIES = [
|
const DEFAULT_CATEGORIES = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue