diff options
Diffstat (limited to 'src/routes/(app)/thread')
| -rw-r--r-- | src/routes/(app)/thread/[id]/+page.server.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/routes/(app)/thread/[id]/+page.server.ts b/src/routes/(app)/thread/[id]/+page.server.ts index 931e9cb8..548c43fb 100644 --- a/src/routes/(app)/thread/[id]/+page.server.ts +++ b/src/routes/(app)/thread/[id]/+page.server.ts @@ -2,11 +2,11 @@ import { get } from "$lib/utils"; import { error } from "@sveltejs/kit"; export async function load({ params }) { - try { - const thread = await get(`/thread/${params.id}`); - return { thread }; - } catch (e) { - console.log(e); - error(500, { message: "Failed to get thread" }); - } + try { + const thread = await get(`/thread/${params.id}`); + return { thread }; + } catch (e) { + console.log(e); + error(500, { message: "Failed to get thread" }); + } } |
