mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
...try again
This commit is contained in:
parent
0d43bb0afa
commit
a599e1ac57
@ -123,15 +123,11 @@ router.get("/", async (req: Request, res: Response) => {
|
|||||||
MoreThan((BigInt(around) - BigInt(halfLimit)).toString()),
|
MoreThan((BigInt(around) - BigInt(halfLimit)).toString()),
|
||||||
LessThan((BigInt(around) + BigInt(halfLimit)).toString())
|
LessThan((BigInt(around) + BigInt(halfLimit)).toString())
|
||||||
];
|
];
|
||||||
}
|
|
||||||
|
|
||||||
let messages;
|
|
||||||
try {
|
|
||||||
messages = await Message.find(query);
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
return res.json([]);
|
return res.json([]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const messages = await Message.find(query);
|
||||||
const endpoint = Config.get().cdn.endpointPublic;
|
const endpoint = Config.get().cdn.endpointPublic;
|
||||||
|
|
||||||
return res.json(
|
return res.json(
|
||||||
|
Loading…
Reference in New Issue
Block a user