aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-31 09:34:16 -0700
committerAdam Soltys <[email protected]>2024-10-31 09:34:16 -0700
commit243abb0a3d29e8e34e263eec843488e3bdb468a4 (patch)
treebe55931ba0f3c110c3001f56a5339cb63e78b761 /src/routes/(app)/payment
parent4742e72ec25823ceeea7848fb2e1f868bed7f472 (diff)
downloadcoinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.tar.gz
coinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.zip
biome
Diffstat (limited to 'src/routes/(app)/payment')
-rw-r--r--src/routes/(app)/payment/[id]/+page.server.ts6
-rw-r--r--src/routes/(app)/payment/[id]/bump/+server.ts14
-rw-r--r--src/routes/(app)/payment/[id]/plain/+page.server.ts4
-rw-r--r--src/routes/(app)/payment/[id]/print/+server.ts4
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)));
}