make config class and separate migrations script

This commit is contained in:
Milo Schwartz 2025-01-01 17:50:12 -05:00
parent b199595100
commit 9732098799
No known key found for this signature in database
45 changed files with 163 additions and 156 deletions

View file

@ -16,7 +16,7 @@ export async function requestEmailVerificationCode(
res: Response,
next: NextFunction
): Promise<any> {
if (!config.flags?.require_email_verification) {
if (!config.getRawConfig().flags?.require_email_verification) {
return next(
createHttpError(
HttpCode.BAD_REQUEST,