diff options
Diffstat (limited to 'src/routes/(app)/payment')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.server.ts | 6 | ||||
| -rw-r--r-- | src/routes/(app)/payment/[id]/bump/+server.ts | 14 | ||||
| -rw-r--r-- | src/routes/(app)/payment/[id]/plain/+page.server.ts | 4 | ||||
| -rw-r--r-- | src/routes/(app)/payment/[id]/print/+server.ts | 4 |
4 files changed, 14 insertions, 14 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.server.ts b/src/routes/(app)/payment/[id]/+page.server.ts index 1dfc0c09..fffdb451 100644 --- a/src/routes/(app)/payment/[id]/+page.server.ts +++ b/src/routes/(app)/payment/[id]/+page.server.ts @@ -1,7 +1,7 @@ import { auth, get } from "$lib/utils"; export async function load({ cookies, depends, params }) { - depends("app:payments"); - let payment = await get(`/payments/${params.id}`, auth(cookies)); - return { payment }; + depends("app:payments"); + const payment = await get(`/payments/${params.id}`, auth(cookies)); + return { payment }; } diff --git a/src/routes/(app)/payment/[id]/bump/+server.ts b/src/routes/(app)/payment/[id]/bump/+server.ts index 336284ba..ae25999c 100644 --- a/src/routes/(app)/payment/[id]/bump/+server.ts +++ b/src/routes/(app)/payment/[id]/bump/+server.ts @@ -2,11 +2,11 @@ import { auth, post } from "$lib/utils"; import { json, error } from "@sveltejs/kit"; export async function POST({ cookies, request }) { - let body = await request.json(); - try { - let res = await post("/replace", body, auth(cookies)); - return json(res); - } catch (e: any) { - error(400, e.message); - } + const body = await request.json(); + try { + const res = await post("/replace", body, auth(cookies)); + return json(res); + } catch (e: any) { + error(400, e.message); + } } diff --git a/src/routes/(app)/payment/[id]/plain/+page.server.ts b/src/routes/(app)/payment/[id]/plain/+page.server.ts index 5a364c65..49d9b98b 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.server.ts +++ b/src/routes/(app)/payment/[id]/plain/+page.server.ts @@ -1,6 +1,6 @@ import { auth, get } from "$lib/utils"; export async function load({ cookies, params }) { - let payment = await get(`/payments/${params.id}`, auth(cookies)); - return { payment }; + const payment = await get(`/payments/${params.id}`, auth(cookies)); + return { payment }; } diff --git a/src/routes/(app)/payment/[id]/print/+server.ts b/src/routes/(app)/payment/[id]/print/+server.ts index 2fdfc8c1..aab6d3f4 100644 --- a/src/routes/(app)/payment/[id]/print/+server.ts +++ b/src/routes/(app)/payment/[id]/print/+server.ts @@ -2,6 +2,6 @@ import { auth, post } from "$lib/utils"; import { json } from "@sveltejs/kit"; export async function POST({ cookies, request }) { - let body = await request.json(); - return json(post("/print", body, auth(cookies))); + const body = await request.json(); + return json(post("/print", body, auth(cookies))); } |
