update user schema, webauthn bug fix

This commit is contained in:
2025-02-24 16:56:25 +05:30
parent dee35bec5b
commit fef560127a
8 changed files with 22 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ export async function mailProxyRoutes(fastify: FastifyInstance) {
const input = req.body as ProxyRequest;
try {
const tokens = await getOutlookTokens(input.email);
const tokens = await getOutlookTokens(input.id);
if (!tokens) return res.code(404).send({ error: "resource not found" });
const result = await axios({

View File

@@ -18,7 +18,7 @@ export const mailModel = mongoose.model(
);
const proxyRequest = z.object({
email: z.string().email(),
id: z.string(),
url: z.string(),
method: z.enum(["GET", "POST", "PATCH", "DELETE"]),
body: z.any(),