updates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user