SPB Git

spb/vquant Public MIT

VibeQuant — AI-powered institutional-grade financial intelligence platform.

TypeScript 84.3% Python 11.7% JavaScript 1.6% CSS 1.5% HTML 0.7%
1.4 KB · 45 lines typescript
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      server/reset-showcase.ts6 *7 *  Author:    Simon-Pierre Boucher8 *  Contact:   contact@spboucher.ai9 *  Website:   https://www.spboucher.ai10 *  Demo:      https://www.vquant.ai11 *  License:   MIT (see LICENSE)12 *13 *  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import { db, schema } from "./db";1819const { sharedReports } = schema;2021async function resetShowcase() {22  try {23    console.log('🗑️  Réinitialisation du Showcase Communautaire...');24    console.log('');2526    // Compter les rapports avant suppression27    const reportsBefore = await (db as any).select().from(sharedReports);28    console.log(`Nombre de rapports actuels: ${reportsBefore.length}`);29    console.log('');3031    await (db as any).delete(sharedReports);3233    console.log('✅ Showcase réinitialisé avec succès !');34    console.log(`   ${reportsBefore.length} analyses publiques ont été supprimées.`);35    console.log('');3637    process.exit(0);38  } catch (error) {39    console.error('❌ Erreur lors de la réinitialisation:', error);40    process.exit(1);41  }42}4344resetShowcase();45