update user schema, webauthn bug fix
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user