Skip to content

Commit bd9edd8

Browse files
committed
Return 6 months from monthly history API to show 5 in cash flow chart
1 parent 8c67a86 commit bd9edd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/api/monthly-history/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function GET() {
99

1010
const db = getDb();
1111
const snapshots = db
12-
.prepare("SELECT month, income, expenses, categories_json, saving_goal FROM monthly_snapshots ORDER BY month DESC LIMIT 4")
12+
.prepare("SELECT month, income, expenses, categories_json, saving_goal FROM monthly_snapshots ORDER BY month DESC LIMIT 6")
1313
.all() as { month: string; income: number; expenses: number; categories_json: string; saving_goal: number }[];
1414

1515
console.debug("[monthly-history] Loaded", snapshots.length, "monthly snapshots");

0 commit comments

Comments
 (0)