mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
accounts table and many other fixes
This commit is contained in:
@@ -102,6 +102,17 @@ export async function getStocks(page = 1) {
|
||||
.offset(offset);
|
||||
}
|
||||
|
||||
export async function getOptics(page = 1) {
|
||||
const limit = 40;
|
||||
const offset = (page - 1) * limit;
|
||||
|
||||
return await db.select()
|
||||
.from(psa)
|
||||
.limit(limit)
|
||||
.where(and(like(psa.fineline, "%Optics%")))
|
||||
.offset(offset);
|
||||
}
|
||||
|
||||
export async function getStocksParts(page = 1) {
|
||||
const limit = 40;
|
||||
const offset = (page - 1) * limit;
|
||||
|
||||
Reference in New Issue
Block a user