fixed some display bugs

This commit is contained in:
2025-11-19 16:31:42 +01:00
parent 6556d2c01d
commit 4ec14416ca
3 changed files with 24 additions and 20 deletions

View File

@@ -21,7 +21,7 @@ export const getItemsFromDatabaseV2 = async () => {
export const getLoanByCodeV2 = async (loan_code) => {
const [result] = await pool.query(
"SELECT username, returned_date, take_date, lockers FROM loans WHERE loan_code = ?;",
"SELECT first_name, returned_date, take_date, lockers FROM loans WHERE loan_code = ?;",
[loan_code]
);
if (result.length > 0) {