bruh there

This commit is contained in:
2025-11-01 21:32:24 -07:00
parent d459dd5f32
commit 44779b607b

View File

@@ -1,6 +1,6 @@
import { MySql2Database } from "drizzle-orm/mysql2"; import { MySql2Database } from "drizzle-orm/mysql2";
import { launcherUpdates } from "../../../lib/tables"; import { launcherUpdates } from "../../../lib/tables";
import { eq } from "drizzle-orm"; import { desc, eq } from "drizzle-orm";
import { jsonResponse } from "../../../lib/util"; import { jsonResponse } from "../../../lib/util";
export async function handler(db: MySql2Database) { export async function handler(db: MySql2Database) {
@@ -12,7 +12,7 @@ export async function handler(db: MySql2Database) {
}) })
.from(launcherUpdates) .from(launcherUpdates)
.where(eq(launcherUpdates.hidden, false)) .where(eq(launcherUpdates.hidden, false))
.orderBy(launcherUpdates.place) .orderBy(desc(launcherUpdates.place))
.limit(1) .limit(1)
.execute() .execute()