From 2eea58808be86e6059ae6db1a22463b4597f7d63 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Thu, 22 Feb 2024 21:26:13 +0100 Subject: [PATCH] bug fix --- package-lock.json | 6 +++--- src/api/acts/roomContent.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index cdf096a..8447b2e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2554,9 +2554,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { "lru-cache": "^6.0.0" diff --git a/src/api/acts/roomContent.ts b/src/api/acts/roomContent.ts index 9984b3c..036bcee 100644 --- a/src/api/acts/roomContent.ts +++ b/src/api/acts/roomContent.ts @@ -559,7 +559,7 @@ export const getItem: Act = { ], listItems) .where(and( eq(listItems.listItemID, data.listItemID), - eq(listItems.roomID, data.roomID) + eq(listItems.roomID, roomID) )) .query(db); if (req.length > 0) { @@ -684,7 +684,7 @@ export const changeItem: Act = { .set(listItems.link, data.listProdID != null ? data.listProdID : null) .where(and( eq(listItems.listItemID, data.listItemID), - eq(listItems.roomID, data.roomID) + eq(listItems.roomID, roomID) )) .query(db); if (req.affectedRows > 0) aws("ok", "");