Changeset e729b88


Ignore:
Timestamp:
12/24/25 23:10:35 (7 months ago)
Author:
Tome <gjorgievtome@…>
Branches:
main
Children:
3fca46c
Parents:
67dfe57
Message:

remove deprecated query and telefunc

Location:
database/drizzle
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • database/drizzle/db.ts

    r67dfe57 re729b88  
    77})
    88
     9pool.on("connect", (client) => {
     10    client.query('SET search_path TO pcforge, public');
     11});
     12
    913export const db = drizzle(pool, { schema });
    1014
  • database/drizzle/queries/builds.ts

    r67dfe57 re729b88  
    100100            name: buildsTable.name,
    101101            created_at: buildsTable.createdAt,
    102             total_price: buildsTable.totalPrice
     102            total_price: buildsTable.totalPrice,
     103            avgRating: sql<number>`AVG(${ratingBuildsTable.value}::float)`
    103104        })
    104105        .from(buildsTable)
Note: See TracChangeset for help on using the changeset viewer.