Move from storing tokens in Berry Dash Database to Lncvrt Games Database

This commit is contained in:
2026-01-29 19:20:24 -07:00
parent 29b60e567f
commit 024b651c52
17 changed files with 32 additions and 64 deletions

View File

@@ -6,7 +6,7 @@ import dotenv from 'dotenv'
import swagger from '@elysiajs/swagger'
import { berryDashChats, berryDashUserData, users } from './lib/tables'
import { and, desc, eq } from 'drizzle-orm'
import { checkAuthorization } from './lib/bd/auth'
import { checkAuthorization } from './lib/auth'
import { handler as getVerifyCodeHandler } from './routes/get-verify-code'
@@ -124,7 +124,6 @@ app.ws('/ws', {
const ip = ws.remoteAddress
const authResult = await checkAuthorization(
message.data.auth as string,
db1,
db0,
ip
)
@@ -181,7 +180,6 @@ app.ws('/ws', {
const ip = ws.remoteAddress
const authResult = await checkAuthorization(
message.data.auth as string,
db1,
db0,
ip
)
@@ -311,7 +309,6 @@ app.ws('/ws', {
const ip = ws.remoteAddress
const authResult = await checkAuthorization(
message.data.auth as string,
db1,
db0,
ip
)