aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/events
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)/events
parent4742e72ec25823ceeea7848fb2e1f868bed7f472 (diff)
downloadcoinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.tar.gz
coinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.zip
biome
Diffstat (limited to 'src/routes/(app)/events')
-rw-r--r--src/routes/(app)/events/+server.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/routes/(app)/events/+server.ts b/src/routes/(app)/events/+server.ts
index 746f2caf..42b9f3dd 100644
--- a/src/routes/(app)/events/+server.ts
+++ b/src/routes/(app)/events/+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 result = await post("/event", body, auth(cookies));
- return json(result);
- } catch (e: any) {
- error(500, e.message);
- }
+ const body = await request.json();
+ try {
+ const result = await post("/event", body, auth(cookies));
+ return json(result);
+ } catch (e: any) {
+ error(500, e.message);
+ }
}