WTF DOES IT WANT FROM ME

This commit is contained in:
2025-11-06 15:34:41 -07:00
parent c3090b260a
commit 01e0c233d7
4 changed files with 5 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ export const launcherVersions = mysqlTable('launcherversions', {
downloadUrls: text('downloadUrls').notNull(), downloadUrls: text('downloadUrls').notNull(),
platforms: text('platforms').notNull(), platforms: text('platforms').notNull(),
executables: text('executables').notNull(), executables: text('executables').notNull(),
hidden: int('hidden').notNull().default(1), hidden: boolean('hidden').notNull().default(false),
game: int('game').notNull().default(0).references(() => launcherGames.id), game: int('game').notNull().default(0).references(() => launcherGames.id),
place: int('place').notNull().default(0), place: int('place').notNull().default(0),
sha512sums: text('sha512sums').notNull().default("[]"), sha512sums: text('sha512sums').notNull().default("[]"),
@@ -29,7 +29,7 @@ export const launcherUpdates = mysqlTable('launcherupdates', {
downloadUrls: text('downloadUrls').notNull(), downloadUrls: text('downloadUrls').notNull(),
platforms: text('platforms').notNull(), platforms: text('platforms').notNull(),
executables: text('executables').notNull(), executables: text('executables').notNull(),
hidden: int('hidden').notNull().default(1), hidden: boolean('hidden').notNull().default(false),
place: int('place').notNull().default(0), place: int('place').notNull().default(0),
sha512sums: text('sha512sums').notNull().default("[]") sha512sums: text('sha512sums').notNull().default("[]")
}) })

View File

@@ -7,7 +7,7 @@ export async function handler(db: MySql2Database) {
id: launcherUpdates.id id: launcherUpdates.id
}) })
.from(launcherUpdates) .from(launcherUpdates)
.where(eq(launcherUpdates.hidden, 0)) .where(eq(launcherUpdates.hidden, false))
.orderBy(desc(launcherUpdates.place)) .orderBy(desc(launcherUpdates.place))
.limit(1) .limit(1)

View File

@@ -45,7 +45,7 @@ export async function handler(context: Context, db: MySql2Database) {
sha512sums: launcherUpdates.sha512sums sha512sums: launcherUpdates.sha512sums
}) })
.from(launcherUpdates) .from(launcherUpdates)
.where(eq(launcherUpdates.hidden, 0)) .where(eq(launcherUpdates.hidden, false))
.orderBy(desc(launcherUpdates.place)) .orderBy(desc(launcherUpdates.place))
.limit(1) .limit(1)
.execute() .execute()

View File

@@ -49,7 +49,7 @@ export async function handler(context: Context, db: MySql2Database) {
sha512sums: launcherVersions.sha512sums, sha512sums: launcherVersions.sha512sums,
sizes: launcherVersions.sizes sizes: launcherVersions.sizes
}).from(launcherVersions) }).from(launcherVersions)
.where(eq(launcherVersions.hidden, 0)) .where(eq(launcherVersions.hidden, false))
.orderBy( .orderBy(
asc(launcherVersions.game), asc(launcherVersions.game),
desc(launcherVersions.place) desc(launcherVersions.place)