Refactor software version queries to use 'rowID' instead of 'id' for consistency across the application

This commit is contained in:
“VeLiTi”
2025-12-11 15:45:14 +01:00
parent 9673d9be7b
commit c39a5ca648
4 changed files with 10 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ if (!$tokenData) {
}
// Get file details
$stmt = $pdo->prepare("SELECT * FROM software_versions WHERE id = ?");
$stmt = $pdo->prepare("SELECT * FROM software_versions WHERE rowID = ?");
$stmt->execute([$tokenData['version_id']]);
$version = $stmt->fetch(PDO::FETCH_ASSOC);