9 lines
261 B
TypeScript
9 lines
261 B
TypeScript
import type { PageServerLoad } from './$types';
|
|
import { getPostingWithCompanyUser } from '$lib/db/index.server';
|
|
|
|
export const load: PageServerLoad = async ({ params }) => {
|
|
return {
|
|
posting: await getPostingWithCompanyUser(parseInt(params.posting))
|
|
};
|
|
};
|