Skip to content

Commit

Permalink
opt(portfolio): Optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzuan committed Dec 5, 2024
1 parent 593ab12 commit b0de6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/controller/portfolio/getAllPortfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default createElysia().get(
{
isFeatured: "desc",
},
{
id: "desc",
},
],
});
portfolioData = portfolio;
Expand Down
1 change: 1 addition & 0 deletions src/api/controller/portfolio/updatePortfolio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default createElysia()
});

await redis.del(`portfolio.${id}`);
await redis.del(`portfolio.all`);

return {
status: 200,
Expand Down

0 comments on commit b0de6a1

Please sign in to comment.