mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
|
|
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);
|
||
|
|
}
|