I don't know why I didn't just do this from the start

This commit is contained in:
2026-02-02 20:04:46 -07:00
parent 14b6522af8
commit fbf5a46e74
16 changed files with 122 additions and 26 deletions

View File

@@ -48,6 +48,8 @@ export async function handler (context: Context) {
userSaveData.account.name = null
userSaveData.account.session = null
} catch {
connection0.end()
connection1.end()
return jsonResponse(
{ success: false, message: "Couldn't parse save data" },
400
@@ -60,5 +62,8 @@ export async function handler (context: Context) {
.where(eq(berryDashUserData.id, userId))
.execute()
connection0.end()
connection1.end()
return jsonResponse({ success: true, message: null })
}