Add an option to checkAuth to update the user's latest IP
This commit is contained in:
9 files changed
+104
-23
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user