Small improvements & fixes

This commit is contained in:
2026-02-02 21:24:45 -07:00
parent b34f628829
commit 3cea4ea9de
3 changed files with 1 additions and 17 deletions

View File

@@ -22,14 +22,6 @@ export async function handler (context: Context) {
let userIdQuery = context.query.userId
? parseInt(context.query.userId, 10)
: 0
if (!userIdQuery || userIdQuery < 1) {
connection0.end()
connection1.end()
return jsonResponse(
{ success: false, message: 'No valid user ID provided', data: null },
400
)
}
const user = await db0
.select({ id: users.id })