feat: 移除手机号验证功能

This commit is contained in:
zyh
2024-10-22 03:45:21 +00:00
parent 2da57de786
commit a7a7bf7a0f
6 changed files with 31 additions and 27 deletions

View File

@@ -1,5 +1,6 @@
import knex from 'knex';
import type { Knex } from 'knex';
import { env } from 'node:process';
let db: Knex;
@@ -21,11 +22,11 @@ function getDb() {
return knex({
client: 'mysql2',
connection: {
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
port: Number(process.env.DB_PORT) || 3306,
host: env.DB_HOST,
user: env.DB_USER,
password: env.DB_PASSWORD,
database: env.DB_NAME,
port: Number(env.DB_PORT) || 3306,
},
pool: {
min: 2,