I don't know why I didn't just do this from the start
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user