aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 17:51:24 -0800
committerAdam Soltys <[email protected]>2026-02-11 17:51:24 -0800
commit13466248004327e9a026cb89f94926f9b060d1c1 (patch)
tree47b4972c33809ccdf866b043c92cd3e0ecf5dcd0 /src/routes/(app)/payment
parent3aa9ce1b5985397d7f568887ec6f881df13c1034 (diff)
downloadcoinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.tar.gz
coinos-ui-13466248004327e9a026cb89f94926f9b060d1c1.zip
linting
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]/plain/+page.svelte3
-rw-r--r--src/routes/(app)/payment/[id]/print/+server.ts4
5 files changed, 16 insertions, 15 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.server.ts b/src/routes/(app)/payment/[id]/+page.server.ts
index fffdb451..74029a56 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");
- const 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 ae25999c..b24980a0 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 }) {
- const body = await request.json();
- try {
- const 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 49d9b98b..18c3e8f6 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 }) {
- const 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]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte
index 30b774a8..46197260 100644
--- a/src/routes/(app)/payment/[id]/plain/+page.svelte
+++ b/src/routes/(app)/payment/[id]/plain/+page.svelte
@@ -15,7 +15,8 @@
types,
} from "$lib/utils";
import { fiat } from "$lib/store";
- import Avatar from "$comp/Avatar.svelte"; import { format } from "date-fns";
+ import Avatar from "$comp/Avatar.svelte";
+ import { format } from "date-fns";
import { PUBLIC_EXPLORER as expl } from "$env/static/public";
let { data } = $props();
diff --git a/src/routes/(app)/payment/[id]/print/+server.ts b/src/routes/(app)/payment/[id]/print/+server.ts
index aab6d3f4..19f8941e 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 }) {
- const body = await request.json();
- return json(post("/print", body, auth(cookies)));
+ const body = await request.json();
+ return json(post("/print", body, auth(cookies)));
}