Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more image info to DB #148

Merged
merged 16 commits into from
Jul 17, 2022
Prev Previous commit
Next Next commit
fix order
  • Loading branch information
SaraVieira committed Jul 17, 2022
commit c6e54505b06d215e30438dba341b0c1b0fee272b
3 changes: 3 additions & 0 deletions apps/designer/app/shared/db/assets.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export const loadByProject = async (projectId?: Project["id"]) => {

const assets = await prisma.asset.findMany({
where: { projectId },
orderBy: {
createdAt: "desc",
},
});

return assets;
Expand Down