mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 21:44:06 +01:00
fix: reduce the number of latest investments fetched from 8 to 5
This commit is contained in:
parent
72d2c8bbfe
commit
36eb461f19
@ -29,7 +29,7 @@ async function getLatestInvestment(
|
||||
deals: { project_id: number; deal_amount: number; created_time: Date;}[]
|
||||
) {
|
||||
const llist = [];
|
||||
const count = 8;
|
||||
const count = 5;
|
||||
// select project name from the given id
|
||||
for (let i = deals.length - 1; i >= 0 && llist.length < count; --i) {
|
||||
let { data: project, error } = await supabase.from("project").select("project_name").eq("id", deals[i].project_id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user