Files
eewing c0fae761da
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
PWA
2026-02-19 07:41:49 -06:00

30 lines
1.4 KiB
JavaScript

import { e as error } from './index-wpIsICWW.js';
import { m as mapUserRecord } from './user-from-record-CP0SRVyL.js';
const load = async ({ params, locals }) => {
const id = params.id;
if (!id) throw error(404, "User not found");
try {
const record = await locals.pb.collection("users").getOne(id);
return { user: mapUserRecord(record) };
} catch {
throw error(404, "User not found");
}
};
var _page_server_ts = /*#__PURE__*/Object.freeze({
__proto__: null,
load: load
});
const index = 6;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-U_BmklAY.js')).default;
const server_id = "src/routes/users/[id]/+page.server.ts";
const imports = ["_app/immutable/nodes/6.Vre0jbUi.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/BfGs3WDN.js","_app/immutable/chunks/Dc4kZMuG.js","_app/immutable/chunks/BlBMKpZ6.js","_app/immutable/chunks/CQe9XmLJ.js","_app/immutable/chunks/C2sKwo1m.js","_app/immutable/chunks/BIDFgmbM.js","_app/immutable/chunks/B52PvkJe.js","_app/immutable/chunks/C3gUTv4t.js","_app/immutable/chunks/By9q4dnk.js","_app/immutable/chunks/D7710T35.js","_app/immutable/chunks/BSLeMsiy.js","_app/immutable/chunks/DecArsLH.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=6-DL87GJeT.js.map