From 97216acd0f649988ef89c8cb45e87626a1bde128 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Wed, 3 Sep 2025 13:31:02 +0800 Subject: [PATCH] fix reset endpoint crash --- src/routes/api/bybit/stacking/reset/+server.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/api/bybit/stacking/reset/+server.ts b/src/routes/api/bybit/stacking/reset/+server.ts index 91d096d..778950c 100644 --- a/src/routes/api/bybit/stacking/reset/+server.ts +++ b/src/routes/api/bybit/stacking/reset/+server.ts @@ -2,8 +2,6 @@ import { db } from '$lib/db/index.js' import { current_stack, stacking_config } from '$lib/db/schema.js' export const POST = async ({ request }) => { - const body = await request.json() - await db.update(current_stack).set({ stack: 0, })