Refactor API and frontend components: update item state handling, adjust API key length, and improve table layout for MyLoansPage
This commit is contained in:
@@ -41,7 +41,7 @@ export const getLoanByCodeV2 = async (loan_code) => {
|
||||
|
||||
export const changeInSafeStateV2 = async (itemId) => {
|
||||
const [result] = await pool.query(
|
||||
"UPDATE items SET inSafe = NOT inSafe WHERE id = ?",
|
||||
"UPDATE items SET in = NOT inSafe WHERE id = ?",
|
||||
[itemId]
|
||||
);
|
||||
if (result.affectedRows > 0) {
|
||||
|
||||
Reference in New Issue
Block a user