screentinker/server/fix_branding.js
2026-07-26 14:06:26 +01:00

10 lines
326 B
JavaScript

const { db } = require('./db/database');
try {
db.prepare('DELETE FROM white_labels').run();
const d = require('./db/database').dbOptions;
if (d && typeof db.sync === 'function') db.sync();
console.log('Cleared old branding overrides, server will use the new HARDCODED_BRANDING.');
} catch (e) {
console.error(e);
}