altered getFilesByProjectId to not return the full byte data of each file. It now just returns the metadata.

This commit is contained in:
Rapturate
2026-04-28 15:56:26 -04:00
parent c8121cc5e7
commit 59036e033b
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@@ -161,6 +161,13 @@ export async function getFilesByProjectId(projectId, userId) {
const files = await prisma.file.findMany({
where: { projectId },
select: {
id: true,
projectId: true,
name: true,
size: true,
mimeType: true,
},
});
return files;