test api route timeout

This commit is contained in:
m5r 2021-08-02 15:38:13 +08:00
parent 4ee105b46a
commit 09568ef684

View File

@ -49,5 +49,7 @@ export default async function ddd(req: BlitzApiRequest, res: BlitzApiResponse) {
console.log("messagesReceived", messagesReceived.sort((a, b) => a.dateCreated.getTime() - b.dateCreated.getTime()));
// console.log("messagesReceived", messagesReceived);*/
res.status(200).end();
setTimeout(() => {
res.status(200).end();
}, 1000 * 60 * 5);
}