get images to load in correct order

This commit is contained in:
luisa.bellitto 2025-06-29 19:30:39 +02:00 committed by Rudi Regentonne
parent 353f0f7839
commit 8e7b36724e
4 changed files with 65 additions and 46 deletions

View file

@ -205,6 +205,7 @@ export const getUserPosts = async (req: Request, res: Response) => {
username: username,
},
},
orderBy: { createdAt: "desc" },
});
if (!posts || posts.length === 0) {
res.status(StatusCodes.NOT_FOUND).json({