This commit is contained in:
2025-06-10 20:45:47 +02:00
parent e5b8affa84
commit cf4af2cbff
5 changed files with 82 additions and 68 deletions

View File

@@ -29,6 +29,9 @@ export default defineEventHandler(async (event) => {
throw createError({ statusCode: 401, statusMessage: "unauthenticated" });
}
// Set longer timeout for this endpoint to prevent 502 errors
event.node.res.setTimeout(60000); // 60 seconds
try {
const body = await readBody(event);
const { interestId } = body;