Skip to content

Commit

Permalink
fix: specific list posts response
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Feb 3, 2025
1 parent 526c5f3 commit b21fdcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/qeta-backend/src/service/routes/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ export const postsRoutes = (router: Router, options: RouteOptions) => {
filter,
);

const mapped = await Promise.all(
await Promise.all(
posts.posts.map(async post => {
await mapAdditionalFields(request, post, options);
}),
);
response.json({ posts: mapped, total: posts.total });
response.json(posts);
});

// GET /posts/:id
Expand Down

0 comments on commit b21fdcc

Please sign in to comment.