mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 10:46:44 -05:00
added a products page and pulled psa data
This commit is contained in:
12
src/db/queries/PSA/index.ts
Normal file
12
src/db/queries/PSA/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { db } from '../../index';
|
||||
import { psa } from '../../../drizzle/schema';
|
||||
|
||||
export async function getPSA(page = 1) {
|
||||
const limit = 10;
|
||||
const offset = (page - 1) * limit;
|
||||
|
||||
return await db.select()
|
||||
.from(psa)
|
||||
.limit(limit)
|
||||
.offset(offset);
|
||||
}
|
||||
Reference in New Issue
Block a user