bug fix
This commit is contained in:
parent
b0d949b350
commit
2eea58808b
2 changed files with 5 additions and 5 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -2554,9 +2554,9 @@
|
||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
"node_modules/semver": {
|
||||||
"version": "7.3.8",
|
"version": "7.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
|
||||||
"integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==",
|
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lru-cache": "^6.0.0"
|
"lru-cache": "^6.0.0"
|
||||||
|
|
|
@ -559,7 +559,7 @@ export const getItem: Act = {
|
||||||
], listItems)
|
], listItems)
|
||||||
.where(and(
|
.where(and(
|
||||||
eq(listItems.listItemID, data.listItemID),
|
eq(listItems.listItemID, data.listItemID),
|
||||||
eq(listItems.roomID, data.roomID)
|
eq(listItems.roomID, roomID)
|
||||||
))
|
))
|
||||||
.query(db);
|
.query(db);
|
||||||
if (req.length > 0) {
|
if (req.length > 0) {
|
||||||
|
@ -684,7 +684,7 @@ export const changeItem: Act = {
|
||||||
.set(listItems.link, data.listProdID != null ? data.listProdID : null)
|
.set(listItems.link, data.listProdID != null ? data.listProdID : null)
|
||||||
.where(and(
|
.where(and(
|
||||||
eq(listItems.listItemID, data.listItemID),
|
eq(listItems.listItemID, data.listItemID),
|
||||||
eq(listItems.roomID, data.roomID)
|
eq(listItems.roomID, roomID)
|
||||||
))
|
))
|
||||||
.query(db);
|
.query(db);
|
||||||
if (req.affectedRows > 0) aws("ok", "");
|
if (req.affectedRows > 0) aws("ok", "");
|
||||||
|
|
Loading…
Reference in a new issue