feat: inicializar repositorio oficial do clube67.com

This commit is contained in:
VPS 4 Builder
2026-05-18 18:32:55 +02:00
commit a7fd18eb55
96 changed files with 17059 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import { db } from './src/config/database';
async function check() {
try {
const id = 1; // Assuming ID 1 exists from previous run
console.log('Testing update on ID:', id);
// 1. Update to TRUE
console.log('Updating hide_partner_name to TRUE...');
await db('benefits').where({ id }).update({ hide_partner_name: true });
let row = await db('benefits').where({ id }).first();
console.log('After TRUE update:', row.hide_partner_name, typeof row.hide_partner_name);
// 2. Update to FALSE
console.log('Updating hide_partner_name to FALSE...');
await db('benefits').where({ id }).update({ hide_partner_name: false });
row = await db('benefits').where({ id }).first();
console.log('After FALSE update:', row.hide_partner_name, typeof row.hide_partner_name);
process.exit(0);
} catch (e) {
console.error('Error:', e);
process.exit(1);
}
}
check();