product with links

This commit is contained in:
2024-12-12 10:34:50 -05:00
parent 94772623cd
commit 6c7b7472fd
2 changed files with 51 additions and 38 deletions

View File

@@ -24,19 +24,20 @@ export async function getLowerBuildKits(page = 1) {
.offset(offset);
}
export async function getAKBarreledReceivers(page = 1) {
const limit = 20;
const offset = (page - 1) * limit;
// DISABLING FOR NOW. NO NEED FOR AK. FOCUS ON AR15
// export async function getAKBarreledReceivers(page = 1) {
// const limit = 20;
// const offset = (page - 1) * limit;
return await db.select()
.from(psa)
.limit(limit)
.where(eq(psa.fineline, "AK Barreled Receivers"))
.offset(offset);
}
// return await db.select()
// .from(psa)
// .limit(limit)
// .where(eq(psa.fineline, "AK Barreled Receivers"))
// .offset(offset);
// }
export async function getARCompleteLowers(page = 1) {
const limit = 20;
const limit = 40;
const offset = (page - 1) * limit;
return await db.select()