Files
Stackq/build/server/chunks/2-CIfUOxeL.js
T

23 lines
1.1 KiB
JavaScript

const COLLECTION = "Stackq_Items";
const load = async ({ locals }) => {
const list = await locals.pb.collection(COLLECTION).getFullList({ sort: "-created", expand: "Parent" }).catch(() => []);
const itemsForParent = list.map((i) => ({ id: i.id, Item: i.Item, SKU: i.SKU }));
return { itemsForParent };
};
var _page_server_ts = /*#__PURE__*/Object.freeze({
__proto__: null,
load: load
});
const index = 2;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-BBZV9Anf.js')).default;
const server_id = "src/routes/+page.server.ts";
const imports = ["_app/immutable/nodes/2.OkkHA0lV.js","_app/immutable/chunks/CRDN6Mh7.js","_app/immutable/chunks/Dexp9pM5.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/hqfhVoHF.js","_app/immutable/chunks/DcVg5zjO.js","_app/immutable/chunks/B12dZE2q.js","_app/immutable/chunks/BKSreT2u.js","_app/immutable/chunks/agKGoZF1.js","_app/immutable/chunks/jOLfEXYH.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=2-CIfUOxeL.js.map