mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-23 02:42:28 +01:00
...try again
This commit is contained in:
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(
|
||||
|
Loading…
Reference in New Issue
Block a user