mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-07 19:18:51 +00:00
get images to load in correct order
This commit is contained in:
parent
353f0f7839
commit
8e7b36724e
4 changed files with 65 additions and 46 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue