Format all files

This commit is contained in:
Owen
2025-12-09 10:56:14 -05:00
parent fa839a811f
commit f9b03943c3
535 changed files with 7670 additions and 5626 deletions

View File

@@ -11,12 +11,12 @@ import { fromError } from "zod-validation-error";
import { OpenAPITags, registry } from "@server/openApi";
const updateUser2FAParamsSchema = z.strictObject({
userId: z.string()
});
userId: z.string()
});
const updateUser2FABodySchema = z.strictObject({
twoFactorSetupRequested: z.boolean()
});
twoFactorSetupRequested: z.boolean()
});
export type UpdateUser2FAResponse = {
userId: string;
@@ -90,13 +90,15 @@ export async function updateUser2FA(
);
}
logger.debug(`Updating 2FA for user ${userId} to ${twoFactorSetupRequested}`);
logger.debug(
`Updating 2FA for user ${userId} to ${twoFactorSetupRequested}`
);
if (twoFactorSetupRequested) {
await db
.update(users)
.set({
twoFactorSetupRequested: true,
twoFactorSetupRequested: true
})
.where(eq(users.userId, userId));
} else {