final touches
ci / docker_image (push) Successful in 1m37s
ci / deploy (push) Successful in 16s

This commit is contained in:
2025-01-30 22:12:08 -06:00
parent fa14fe0496
commit 5eca1635f5
11 changed files with 206 additions and 26 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import { getPosting, getPostingFullData } from '$lib/db/index.server';
import { getPosting, getPostingWithCompanyUser } from '$lib/db/index.server';
import { error, json } from '@sveltejs/kit';
export async function GET({ url }) {
const id = url.searchParams.get('id');
if (!id) return new Response(error(400, 'No id provided'));
return json(await getPostingFullData(parseInt(id)));
return json(await getPostingWithCompanyUser(parseInt(id)));
}