Add an option to checkAuth to update the user's latest IP

This commit is contained in:
Lncvrt committed 2026-01-22 18:31:48 -07:00
1 parent c62d4033d5
commit b4a9d26d0f
9 files changed
+104 -23

No files matched your search

+1 -2
View File
@@ -1,9 +1,8 @@
import { launcherVersionManifest } from '../../../lib/tables'
import { and, desc, eq } from 'drizzle-orm'
import { getDatabaseConnection, jsonResponse } from '../../../lib/util'
import { Context } from 'elysia'
export async function handler (context: Context) {
export async function handler () {
const dbResult = getDatabaseConnection(0)
if (!dbResult)
return jsonResponse({ error: 'Failed to connect to database' }, 500)