From a8821ceca8f0d13aec66765966f78c5fe11bbd4f Mon Sep 17 00:00:00 2001 From: Theis Gaedigk Date: Sun, 26 Oct 2025 13:39:09 +0100 Subject: [PATCH] refactored code --- backend/services/database.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/database.js b/backend/services/database.js index b3f39b5..a60dc65 100644 --- a/backend/services/database.js +++ b/backend/services/database.js @@ -349,7 +349,6 @@ export const createLoanInDatabase = async ( }; // These functions are only temporary, and will be deleted when the full bin is set up. - export const onTake = async (loanId) => { const [items] = await pool.query( "SELECT loaned_items_id FROM loans WHERE id = ?", @@ -405,6 +404,7 @@ export const onReturn = async (loanId) => { } return { success: false }; }; +// Temporary functions end here. export const loginAdmin = async (username, password) => { const [result] = await pool.query(