weird bug fix
This commit is contained in:
parent
1b24031833
commit
66c11515ca
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { and, coalesce, eq, insert, leftJoinUsing, max, order, plus, remove, select, update } from "dblang";
|
||||
import { and, coalesce, eq, insert, leftJoinOn, leftJoinUsing, max, order, plus, remove, select, update } from "dblang";
|
||||
import { checkSelfTag } from "../../server/outbagURL.js";
|
||||
import { Act, Client, STATE } from "../user.js";
|
||||
import { db, listCategories, listItems, listProducts } from "../../sys/db.js";
|
||||
|
@ -497,7 +497,7 @@ export const getItems: Act = {
|
|||
listItems.unit,
|
||||
listItems.value,
|
||||
listItems.link,
|
||||
], leftJoinUsing(listItems, listCategories, listItems.category, listCategories.listCatID))
|
||||
], leftJoinOn(listItems, listCategories, eq(listItems.category, listCategories.listCatID)))
|
||||
.where(eq(listItems.roomID, roomID))
|
||||
.orderBY(listItems.state, order.ASC)
|
||||
.addOrderBy(listCategories.weight, order.ASC)
|
||||
|
|
Loading…
Reference in a new issue