make config class and separate migrations script

This commit is contained in:
Milo Schwartz 2025-01-01 17:50:12 -05:00
parent d3bfac20a0
commit f03f1570a5
45 changed files with 163 additions and 156 deletions

View file

@ -34,7 +34,7 @@ export const verifySessionUserMiddleware = async (
if (
!existingUser[0].emailVerified &&
config.flags?.require_email_verification
config.getRawConfig().flags?.require_email_verification
) {
return next(
createHttpError(HttpCode.BAD_REQUEST, "Email is not verified") // Might need to change the response type?