...try again

This commit is contained in:
Madeline
2022-09-02 21:17:52 +10:00
parent d6770d8917
commit f7de3c6c0f
@@ -123,15 +123,11 @@ router.get("/", async (req: Request, res: Response) => {
MoreThan((BigInt(around) - BigInt(halfLimit)).toString()),
LessThan((BigInt(around) + BigInt(halfLimit)).toString())
];
}
let messages;
try {
messages = await Message.find(query);
}
catch (e) {
return res.json([]);
}
const messages = await Message.find(query);
const endpoint = Config.get().cdn.endpointPublic;
return res.json(