1 import { db } from '@lib/db';
2 import {ShopItem} from '@shared/inventory';
4 export function listShopItems(where: Partial<ShopItem>): Promise<ShopItem[]> {
5 return db.select('*').from<ShopItem>('shop_items')
7 .orderBy('requirement_level')
12 export function getShopItem(id: string): Promise<ShopItem> {
13 return db.select('*').from<ShopItem>('shop_items').where({