const fs = require('fs');
let code = fs.readFileSync('contractors_module.js', 'utf8');
code = code.replace(/window\.DB\.getAll\('invoices'\)/g, "window.DB.getAll('transactions')");
fs.writeFileSync('contractors_module.js', code, 'utf8');

let indexHtml = fs.readFileSync('index.html', 'utf8');
indexHtml = indexHtml.replace(/v=20260610l/g, 'v=20260610m');
fs.writeFileSync('index.html', indexHtml, 'utf8');

console.log('Fixed DB getAll');
