Refactor software version queries to use 'rowID' instead of 'id' for consistency across the application
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user