Ignore:
Timestamp:
03/05/26 11:31:19 (4 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Parents:
41825d5
Message:

Fix SQL functions for reporting and update queries in reports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database/drizzle/util/reports.ts

    r41825d5 rff3a614  
    1111        console.table(r1.rows);
    1212
    13         const r2 = await db.execute(sql`SELECT * FROM get_report_user_leaderboard()`);
     13        const r2 = await db.execute(sql`SELECT * FROM get_report_user_reputation_leaderboard()`);
    1414        console.log('--- User Reputation Leaderboard ---');
    1515        console.table(r2.rows);
    1616
    17         const r3 = await db.execute(sql`SELECT * FROM get_report_price_performance()`);
     17        const r3 = await db.execute(sql`SELECT * FROM get_report_price_to_performance()`);
    1818        console.log('--- Price-to-Performance Analysis ---');
    1919        console.table(r3.rows);
    2020
    21         const r4 = await db.execute(sql`SELECT * FROM get_report_budget_tier()`);
     21        const r4 = await db.execute(sql`SELECT * FROM get_report_budget_tier_popularity()`);
    2222        console.log('--- Budget Tier Popularity ---');
    2323        console.table(r4.rows);
Note: See TracChangeset for help on using the changeset viewer.