remove auto download UPX and fix other issues

This commit is contained in:
KingKDot
2026-03-16 18:42:56 -05:00
parent 7734d895f5
commit 3b6a33ef8b
3 changed files with 33 additions and 96 deletions
+5 -2
View File
@@ -652,7 +652,10 @@ export function getBuildByTag(buildTag: string): BuildRecord | null {
}
export function getAllBuilds(userId?: number, role?: string): BuildRecord[] {
if (role !== "admin" && userId != null) {
if (role !== "admin") {
if (userId == null) {
return [];
}
const rows = db
.query<any>(`SELECT * FROM builds WHERE built_by_user_id = ? ORDER BY start_time DESC`)
.all(userId);
@@ -667,7 +670,7 @@ export function getAllBuilds(userId?: number, role?: string): BuildRecord[] {
}));
}
const rows = db
.query<any>(`SELECT * FROM builds ORDER BY start_time DESC`)
.query<any>("SELECT * FROM builds ORDER BY start_time DESC")
.all();
return rows.map((row) => ({
id: row.id,